Macro spurs::cmd [−][src]
macro_rules! cmd {
($fmt : expr) => { ... };
($fmt : expr, $($arg : tt) *) => { ... };
}
Expand description
A useful macro that allows creating commands with format strings and arguments.
ⓘ
cmd!("ls {}", "foo")
is equivalent to the expression
ⓘ
SshCommand::new(&format!("ls {}", "foo"))