Please provide pipe functionality
steinemann opened this issue · comments
Hi,
I love using xshell and the xtask approach, but what I am completely missing is support for piping commands together.
Please provide a functionality to pipe commands like
cmd!("echo hi") | cmd!("grep i").run()?
or
cmd!("echo hi").pipe("grep i").run()?
Thanks
Piping is out of scope for this project. https://crates.io/crates/duct might have what you're looking for.
One workaround if you don't want to use duct
can be just calling bash. E.g.
let bash = r#"echo "hi" | grep "hello""#;
cmd!(sh, "bash -c {bash}").run()?;
That might get you by under some constrained conditions.