Skip to main content

run

Function run 

Source
pub fn run(
    root: &Path,
    argvs: &[Vec<String>],
    timeout: Duration,
    cancel: &Arc<AtomicBool>,
    line: &dyn Fn(Stream, &str),
) -> CommandResult
Expand description

Runs the person’s own argvs in root, one after the other while each succeeds, each line of output handed to line (masked). Ends early, with everything it started, when cancel turns true or after timeout.