Skip to main content

run_to_completion

Function run_to_completion 

Source
pub fn run_to_completion(
    program: &Path,
    args: &[&str],
    dir: &Path,
) -> Result<(bool, String), String>
Expand description

Run program args in dir to completion. Ok((success, output)), where the output is the tool’s stderr, or its stdout when stderr is blank; Err when the tool could not be started.