typed-command-builder
is a crate for declaring interfaces to
std::process::Command
or tokio::process::Command
that is typed.
You can use this library for desgning a type that can be called like this:
// Call `cat` (see `man cat`):
let command = CatCommand::new()
.show_all(true) // --show-all
.number(true) // --number
.file("/some/thing") // [FILE]...
.file("/some/thing"); // [FILE]...
let out = command.run().unwrap();
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.