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

Function command_scope_start

atomic-cli/src/agent_error.rs:174–181  ·  view source on GitHub ↗
(root: &clap::Command, key: &str, argv: &[OsString])

Source from the content-addressed store, hash-verified

172}
173
174fn command_scope_start(root: &clap::Command, key: &str, argv: &[OsString]) -> usize {
175 let (resolved, start) = walk_invoked(root, argv);
176 if resolved == key {
177 start
178 } else {
179 1
180 }
181}
182
183/// `atomic` for the root, `atomic memory new` for a leaf.
184fn display_path(root: &clap::Command, key: &str) -> String {

Callers 2

raw_option_valueFunction · 0.85
has_explicit_empty_valueFunction · 0.85

Calls 1

walk_invokedFunction · 0.85

Tested by

no test coverage detected