pub fn command_pipe_base<T>(
command: &mut Command,
piped: &mut Command,
piped_stdout: T,
) -> Result<Output, Error>
Expand description
Pipe stdout of command
to stdin of piped
command,
and pipe stdout of piped
to piped_stdout
ยงErrors
command_pipe can result in std::io::Error
- when
spawn
orwait
fail - when there is an issue with the stdout / stdin pipe (std::io::ErrorKind::BrokenPipe)