Skip to main content

run

Function run 

Source
pub fn run(program: &str, args: &[&str]) -> CmdResult
Expand description

Run program args..., capturing stdout/stderr. Never panics: a spawn failure (missing binary) yields a CmdResult { code: None, spawned: false } rather than an error, so callers decide whether a missing tool is fatal.