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