A helper library for building commands.
The [cmd!] macro can be used to generate [std::process::Command] (or [PipeCommand]). Refer
to its documentation for more information.
Examples
use cmd;
use Path;
#
A helper library for building commands.
The [cmd!] macro can be used to generate [std::process::Command] (or [PipeCommand]). Refer
to its documentation for more information.
use procmd::cmd;
use std::path::Path;
# fn main() -> Result<(), Box<dyn std::error::Error>> {
let file_path = Path::new("/path/to/file");
cmd!("cat", "-n", file_path).spawn()?;
# Ok(())
# }