shutil
Rust shell utility helper library
Installing
cargo add shutil
Using command pipelines in rust
shutil::pipe() makes it easy to execute command pipelines in rust.
For example, say you want to execute the following pipeline:
| |
This will echo the string "foo", reverse it, and then change lowercase characters to uppercase. The result will be the string "OOF". Here is the equivalent rust code:
use pipe;