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

Function metadata_text

atomic-cli/src/commands/intent/graph.rs:383–385  ·  view source on GitHub ↗
(node: &'a atomic_core::KgNode, key: &str)

Source from the content-addressed store, hash-verified

381}
382
383fn metadata_text<'a>(node: &'a atomic_core::KgNode, key: &str) -> Option<&'a str> {
384 node.metadata.as_ref()?.get(key)?.as_str()
385}
386
387fn tree_label(node: &atomic_core::KgNode) -> String {
388 let label = if node.has_type(Class::File) {

Callers 3

render_treeFunction · 0.85
node_detailsFunction · 0.85
tree_labelFunction · 0.85

Calls 3

as_refMethod · 0.80
getMethod · 0.65
as_strMethod · 0.45

Tested by

no test coverage detected