Function exec

Source
pub fn exec(cmd: &str, args: &Vec<&str>) -> Result<CmdResult, Error>
Available on crate feature cmd only.
Expand description

exec a command and get the result,if get the command’s exit code failed, default to -1