execute-command-macro 0.1.1

Create `Command` instances using the `command!` macro or the `command_args!` marco.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![cfg(target_os = "linux")]

#[macro_use]
extern crate execute_command_macro;

#[test]
fn command() {
    let mut command = command!("sh -c \"echo '123 456' | cut -d ' ' -f 1\"");

    let output = command.output().unwrap();

    assert_eq!(b"123\n", output.stdout.as_slice());
}