claptrap 0.3.0

Bring the power of Clap to shell scripts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
const CLAPTRAP_BIN: &str = env!("CARGO_BIN_EXE_claptrap");

#[test]
fn test_schema() {
    let output = std::process::Command::new(CLAPTRAP_BIN)
        .arg("schema")
        .env("COLUMNS", "80")
        .output()
        .expect("failed to run claptrap");
    assert_eq!(Some(0), output.status.code());
    insta::assert_snapshot!("test_schema", String::from_utf8_lossy(&output.stdout));
}