use command_ext::CommandExtCheck;
use std::process::Command;
fn main() -> anyhow::Result<()> {
Command::new("echo").arg("x").check()?; Command::new("noexistcmd")
.arg("badarg")
.check()
.map_err(|e| {
eprintln!("{}", e);
})
.ok();
Command::new("false")
.check()
.map_err(|e| {
eprintln!("{}", e);
})
.ok();
Ok(())
}