wrapcli 0.2.8

Wrap and rewrite CLI output to masquerade as another tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use wrapcli::{run_streaming, WrapConfig};

#[test]
fn common() -> std::io::Result<()> {
    let cfg = WrapConfig {
        orig_name: "rustc".into(),
        fake_name: "dustc".into(),
        fake_ver: "2.0.0".into(),
        save_orig: true,
    };

    let args: Vec<String> = std::env::args().skip(1).collect();
    let status = run_streaming(&cfg, args)?;
    std::process::exit(status.code().unwrap_or(1));
}