1 stable release
1.0.0 | Nov 7, 2022 |
---|
#1324 in Data structures
47 downloads per month
Used in 2 crates
(via cotton)
7KB
114 lines
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");
lib.rs
:
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");