procmd 0.1.0

A helper library for building commands
Documentation
  • Coverage
  • 87.5%
    7 out of 8 items documented2 out of 6 items with examples
  • Size
  • Source code size: 20.87 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.45 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nn1ks

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