pub fn run_captured(
command: Command,
stdin_text: Option<&str>,
timeout: Option<Duration>,
) -> Result<Outcome, String>Expand description
Run command to completion with stdout/stderr captured, writing
stdin_text (if any) to its standard input, killing it if it outlives
timeout.