Skip to main content

run_cmd_output

Function run_cmd_output 

Source
pub(crate) fn run_cmd_output(program: &str, args: &[&str]) -> Result<String>
Expand description

Run an arbitrary command and return stdout. Fails if exit code != 0.