Skip to main content

run_streamed_cmd

Function run_streamed_cmd 

Source
pub fn run_streamed_cmd<F: FnMut(&str)>(cmd: Command, on_line: F) -> CmdResult
Expand description

Like run_streamed but takes a pre-built Command, so the caller can set the working directory + environment. Streams stdout/stderr lines to on_line on the calling thread.