Macro devx_cmd::cmd[][src]

macro_rules! cmd {
    ($bin:expr $(, $arg:expr )* $(,)?) => { ... };
}
Expand description

Create a Cmd with the given binary and arguments.

The parameters to this macro may have completely different types. The single requirement for them is to implement Into<OsString>

let path = Path::new("/foo/bar");

let cmd = cmd!("echo", "hi", path);
cmd.run()?;