- Add support to overwrite
std_out
using fd. Can be used likesoldier.run(cmd, std_out=1)
to write output to fd 1 (/dev/stdout) in this case. - Bugfix: When using
shell=True
do not split the command usingshlex
- Bugfix: Call
Popen.communicate
whenstream=True
to setexit_code
explicitly in case process is still in running state
- Bugfix:
exit_code
was not being set when usingstream=True
. This was fixed by callingPopen.poll()
exit_code
is now a property,status_code
is still supported but will be deprecatedsuppress_std_err
keyworded argument is added to prevent from always printing stderr
- Custom enviroment variables can be passed to commands
- Support for cwd when executing commands
- Supoort for streaming of output to stdout
Initial Relase