Function run
Source pub fn run(command: &str) -> Result<String, String>
Expand description
run
§Arguments
returns: Result<String, String>
§Examples
let command = "pwd";
match cmdwrap::run(command) {
Ok(output) => {
println!("{}", output)
}
Err(error) => {
println!("\tCommand execution failed:\n{}", error);
}
}