Skip to content

A typed command builder for wrapping std::process::Command with a typed interface

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

matthiasbeyer/typed-command-builder

typed-command-builder


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();

License

Licensed under either of

at your option.

About

A typed command builder for wrapping std::process::Command with a typed interface

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published