RunCmd
This library is used for extending Execute which is extending Command in order to execute commands more easily. Especially made for simple shell commands returning an exit code as a number, stdout and stderr as strings.
Usage
use Command;
use RunCmd;
new.execute;
verbose
verbose() will print the ins and outs to stdout
new
.verbose
.execute;
shell
shell() sets the executor to run the command in a shell using the underlying Execute::shell rather than Execute::command.
new
.shell
.execute;
executep
executep() runs the command, without returning anything, but panics if the command doesn't succeed. Useful in only the most trival circumstances.
new
.shell
.executep;
execute
execute() runs the command, returning a RunCmdOutput.
let retval: RunCmdOutput = new.execute;
It returns the following.