Function easy_shortcuts::shell
[−]
[src]
pub fn shell(cmd: &str) -> String
execute a shell command, combining stdout and stderr, and return the result as a string
extern crate easy_shortcuts as es; let res = es::shell("rustc -V"); assert!(res.starts_with("rustc"));