Skip to main content

fake_cli

Function fake_cli 

Source
pub fn fake_cli(dir: &Path, name: &str, body: &str) -> PathBuf
Expand description

Writes an executable shell script dir/name that prints 1.0.0 for --version and runs body otherwise (Unix only). Mirrors agent-call’s test helper.