Closed beydogan closed 6 years ago
This PR adds stdin and stdout support.
It checks the 2nd last element of cmd array whether its < or > and runs the command according to that.
cmd
<
>
I've tested it with postgres:import and postgres:export its working except one problem; output of command is empty. How should we handle that?
postgres:import
postgres:export
Disclaimer: I'm not sure if its a good way, feel free to shoot :)
This PR adds stdin and stdout support.
It checks the 2nd last element of
cmd
array whether its<
or>
and runs the command according to that.I've tested it with
postgres:import
andpostgres:export
its working except one problem; output of command is empty. How should we handle that?Disclaimer: I'm not sure if its a good way, feel free to shoot :)