execute-command
A simple Rust package that wraps Command
to simplify the execution of programs.
Usage
Basic functions:
use execute_command as exec;
let mut command = parse.unwrap;
let status = status.unwrap;
let output = output.unwrap;
let string = string.unwrap;
Extending Command
:
use ExecuteCommand;
use Command;
let mut command = parse.unwrap;
let status = parse.unwrap.execute_status.unwrap;
let output = parse.unwrap.execute_output.unwrap;
let string = parse.unwrap.execute_string.unwrap;
Note that these functions will return an error if the program exits with a non-zero status code.