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

Function extract_command

atomic-agent/src/provenance/consolidate.rs:621–627  ·  view source on GitHub ↗

Extract a command string from a verification node's detail.

(node: &GraphNode)

Source from the content-addressed store, hash-verified

619
620/// Extract a command string from a verification node's detail.
621fn extract_command(node: &GraphNode) -> Option<String> {
622 node.detail
623 .as_ref()
624 .and_then(|d| d.get("command"))
625 .and_then(|v| v.as_str())
626 .map(|s| s.to_string())
627}
628
629/// Find the longest common directory prefix among a set of paths.
630fn common_directory(paths: &[String]) -> String {

Callers 2

detect_full_cycleFunction · 0.70
detect_commit_and_verifyFunction · 0.70

Calls 3

as_refMethod · 0.80
getMethod · 0.65
as_strMethod · 0.45

Tested by

no test coverage detected