Expand description
Build command arguments.
use std::process::Command;
use mkargs::mkargs;
let world = "world".to_string();
let mut args = mkargs!["hello", world];
args.push_pair("foo", "bar");
Command::new("echo")
.args(&*args)
.spawn()
.expect("echo command failed to start");
Macros§
Structs§
- MkArgs
- Represents list of command arguments.