commandspec
Simple Rust macro for building std::process::Command
objects. Uses macro_rules! and works on stable.
[]
= "0.2.0"
Then:
extern crate commandspec;
use CommandSpec; // .execute() method on Command
use Command;
command!?.execute?; // () on success (error code 0), CommandError for all else
Features:
- format-like invocation makes it easy to interpolate variables, with automatic quoting
- Equivalent syntax to shell when prototyping
- Works on stable Rust.
License
MIT or Apache-2.0, at your option.