Simple wrapper around subprocess. A single function is provided:
run(*cmd, **kwargs)
Pass a command name and its arguments as cmd
.
Optional kwargs
:
cwd
: current working directory (string)capture
: capture stdout and return it (bool)capture_stderr
: redirect stderr to stdout and return it (bool)env
: environment variables (dict)