Pipers

A simple Rust library that allows you to pipe commands into each other.

Installation

In your Cargo.toml:

toml [dependencies] pipers = "1.0.0"

How to use

It's quite simple really!

```rust let out = Pipe::new("ls /") // Put in your first command .then("grep usr") // Choose the command you want to pipe into .then("head -c 1") // Keep chaining the pipes .finally() // Turn the Pipe into a Result .expect("Commands did not pipe") .waitwithoutput() .expect("failed to wait on child");

asserteq!("u", &String::fromutf8(out.stdout).unwrap()); ```

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.