Function cli_runner::run
source · Expand description
Runs a CLI application.
Runs a given command with parameters. The command is given as &str.
Returns the output of the CLI application as a string.
Example:
let cmd = r#"ls -alF"#;
let output = cli_runner::run(cmd);
assert!(output.status.success());