MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / emit_removed

Function emit_removed

atomic-cli/src/commands/vault/removed.rs:87–94  ·  view source on GitHub ↗

Emit the machine-parseable redirect to stderr and exit non-zero (2). Agent-oriented by construction: one `key: value` datum per line, stable keys (`removed`/`use`/`verbs`/`run`/`help`), no styling. Exiting 2 (a usage error, distinct from 1) tells the caller the command did not run.

(removed: &str, family: &str, verbs: &str, run: &str)

Source from the content-addressed store, hash-verified

85/// keys (`removed`/`use`/`verbs`/`run`/`help`), no styling. Exiting 2 (a usage
86/// error, distinct from 1) tells the caller the command did not run.
87fn emit_removed(removed: &str, family: &str, verbs: &str, run: &str) -> CliResult<()> {
88 eprintln!("removed: {removed}");
89 eprintln!("use: {family}");
90 eprintln!("verbs: {verbs}");
91 eprintln!("run: {run}");
92 eprintln!("help: {family} --help");
93 std::process::exit(2);
94}

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected