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

Function display_path

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

`atomic` for the root, `atomic memory new` for a leaf.

(root: &clap::Command, key: &str)

Source from the content-addressed store, hash-verified

182
183/// `atomic` for the root, `atomic memory new` for a leaf.
184fn display_path(root: &clap::Command, key: &str) -> String {
185 if key.is_empty() {
186 root.get_name().to_string()
187 } else {
188 format!("{} {}", root.get_name(), key)
189 }
190}
191
192/// Descend to the node named by a registry key, stopping at the first segment
193/// that does not resolve.

Callers 2

resolve_invokedFunction · 0.70
renderFunction · 0.70

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected