Function spawn_with_streaming_output

Source
pub fn spawn_with_streaming_output(
    cmd: Command,
    on_stdout_line: &mut dyn FnMut(&str),
    on_stderr_line: &mut dyn FnMut(&str),
) -> Result<Output>
Expand description

§Panics

Panics if cmd is not configured to have stdout and stderr as piped.