pub fn fake_cli(dir: &Path, name: &str, body: &str) -> PathBuf
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.
dir/name
1.0.0
--version
body