usecommand_run::{Command, Error};#[test]fntest_example()->Result<(), Error>{// Begin readme example
let cmd =Command::with_args("echo",&["hello","world"]);// This will return an error if the command did not exit successfully
// (controlled with the `check` field). The output is captured by
// default (controlled by the `capture` field).
let output = cmd.run()?;assert_eq!(output.stdout_string_lossy(),"hello world\n");// End readme example
Ok(())}