mkargs 1.0.0

Build command arguments
Documentation
  • Coverage
  • 93.75%
    15 out of 16 items documented1 out of 15 items with examples
  • Size
  • Source code size: 7.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.54 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jpastuszek

Latest Version Documentation License

Build command arguments.

use std::process::Command;
use mkargs::mkargs;

let world = "world".to_string();
let mut args = mkargs!["hello", world];

args.push_pair("foo", "bar");

Command::new("echo")
    .args(&*args)
    .spawn()
    .expect("echo command failed to start");