get_cmd_stdout

Function get_cmd_stdout 

Source
pub fn get_cmd_stdout(cmd: Command) -> Result<Vec<u8>, RunCommandError>
Expand description

Log a command, run it, and get its output.

Returns an error if the process fails to launch or if the exit code is non-zero.