Pipers
A simple Rust library that allows you to pipe commands into each other.
Installation
In your Cargo.toml:
[]
= "1.0.0"
How to use
It's quite simple really!
let out = new // Put in your first command
.then // Choose the command you want to pipe into
.then // Keep chaining the pipes
.finally // Turn the Pipe into a Result<Child>
.expect
.wait_with_output
.expect;
assert_eq!;
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.