ductFunction cmd
Source pub fn cmd<T, U>(program: T, args: U) -> Expression
Expand description
Create a command given a program name and a collection of arguments. See
also the cmd!
macro, which doesn’t require a collection.
§Example
use duct::cmd;
let args = vec!["foo", "bar", "baz"];
let output = cmd("echo", &args).read();
assert_eq!("foo bar baz", output.unwrap());