pub fn pipe() -> PipeAvailable on crate feature
process only.Expand description
Pipe the child’s output into another command’s stdin.
§Example
use cu::pre::*;
let (hello, out) = cu::which("echo")?.command()
.arg("Hello, world!")
.stdout(cu::pio::pipe())
.stdie_null()
.spawn()?;
cu::which("rev")?.command()
.stdin(out)
.stdoe(cu::lv::I)
.wait_nz()?;
hello.wait_nz()?;