[][src]Macro cmd_lib::run_cmd

macro_rules! run_cmd {
    ($($arg:tt)*) => { ... };
}

run_cmd! --> CmdResult

let name = "rust";
run_cmd!("echo hello, {}", name);

// pipe commands are also supported
run_cmd!("du -ah . | sort -hr | head -n 10");

// work without string quote
run_cmd!(du -ah . | sort -hr | head -n 10);