get_cmd_stdout_utf8

Function get_cmd_stdout_utf8 

Source
pub fn get_cmd_stdout_utf8(cmd: Command) -> Result<String, RunCommandError>
Expand description

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

Returns an error if the process fails to launch, or if the exit code is non-zero, or if the output is not utf-8.