procmd 0.1.0

A helper library for building commands
Documentation

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 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(())
# }