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

Function metadata_text

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

Source from the content-addressed store, hash-verified

362}
363
364fn metadata_text<'a>(node: &'a atomic_core::KgNode, key: &str) -> Option<&'a str> {
365 node.metadata.as_ref()?.get(key)?.as_str()
366}
367
368fn tree_label(node: &atomic_core::KgNode) -> String {
369 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