nils-agent-scope-lock 1.12.0

CLI crate for nils-agent-scope-lock in the nils-cli workspace.
Documentation
use nils_test_support::cmd::run_resolved_in_dir;

#[test]
fn unknown_subcommand_exits_usage() {
    let tmp = tempfile::TempDir::new().expect("tempdir");
    let output = run_resolved_in_dir("agent-scope-lock", tmp.path(), &["bogus"], &[], None);
    assert_eq!(output.code, 64);
}

#[test]
fn missing_required_arg_exits_usage() {
    let tmp = tempfile::TempDir::new().expect("tempdir");
    let output = run_resolved_in_dir("agent-scope-lock", tmp.path(), &["create"], &[], None);
    assert_eq!(output.code, 64);
}

#[test]
fn help_flag_exits_success() {
    let tmp = tempfile::TempDir::new().expect("tempdir");
    let output = run_resolved_in_dir("agent-scope-lock", tmp.path(), &["--help"], &[], None);
    assert_eq!(output.code, 0);
}