pub fn run_with_log(
bin: &str,
args: &[OsString],
log: &mut File,
mirror: bool,
) -> Result<ExitStatus>Expand description
Run a command while teeing stdout+stderr into a log file.
Every child line is appended to log as produced. When mirror is true
(verbose mode) lines are also echoed to our stdout so long operations
stream live; otherwise output is captured silently and the caller shows a
tail from the log on failure.