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

Function verbs

atomic-cli/src/agent_error.rs:568–573  ·  view source on GitHub ↗

Visible subcommand names of a node, in declaration order. clap's auto-generated `help` subcommand is excluded: it is not a verb an agent should ever choose, and `vault/removed.rs` — the shim this key is borrowed from — does not list it either.

(node: &clap::Command)

Source from the content-addressed store, hash-verified

566/// agent should ever choose, and `vault/removed.rs` — the shim this key is
567/// borrowed from — does not list it either.
568fn verbs(node: &clap::Command) -> Vec<String> {
569 node.get_subcommands()
570 .filter(|c| !c.is_hide_set() && c.get_name() != "help")
571 .map(|c| c.get_name().to_string())
572 .collect()
573}
574
575/// Render a clap parse failure as `key: value` lines.
576///

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected