test-exec 0.1.0

Test your command line applications comfortably
1
2
3
4
5
6
7
8
9
10
11
12
//! Copy `stdin` to `stdout`.

use std::process::exit;
use std::io::{copy, stdin, stdout};

fn main() {
    let status = match copy(&mut stdin().lock(), &mut stdout().lock()) {
        Ok(_) => 0,
        Err(_) => 1
    };
    exit(status)
}