crepuscularity-cli 0.7.9

crepus CLI — scaffolding and builds for Crepuscularity (UNSTABLE; in active development).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::process::Command;

fn crepus() -> Command {
    Command::new(env!("CARGO_BIN_EXE_crepus"))
}

#[test]
fn embedded_check_valid_template() {
    let tmp = tempfile::tempdir().expect("tempdir");
    let tpl = tmp.path().join("ok.crepus");
    std::fs::write(&tpl, "motion w-full h-full\n  \"ok\"").expect("write");

    let status = crepus()
        .args(["embedded", "check", tpl.to_str().unwrap()])
        .status()
        .expect("spawn");
    assert!(status.success());
}