18 lines
199 B
Rust
18 lines
199 B
Rust
|
macro_rules! cmd {
|
||
|
{
|
||
|
$bin:expr,
|
||
|
$($arg:expr),*
|
||
|
$(,)?
|
||
|
} => {
|
||
|
{
|
||
|
let mut command = Command::new($bin);
|
||
|
|
||
|
$(
|
||
|
command.arg($arg);
|
||
|
)*
|
||
|
|
||
|
command
|
||
|
}
|
||
|
}
|
||
|
}
|