Skip to main content

run_cmd

Function run_cmd 

Source
pub fn run_cmd(program: &str, args: &[&str]) -> Result<RunOutput, RunError>
Expand description

Run an arbitrary command, capturing stdout and stderr.

Fails with RunError::NonZeroExit (carrying captured output) on non-zero exit, or RunError::Spawn if the process couldn’t start.