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

Method run

atomic-cli/src/commands/intent/show.rs:65–80  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

63
64impl Command for IntentShow {
65 fn run(&self) -> CliResult<()> {
66 // Every form routes: the wire carries the lift inputs plus the raw
67 // attestation sources, so the projection runs client-side with
68 // the SAME bridge code over wire data.
69 if crate::commands::rpc::intent_show(self)? {
70 return Ok(());
71 }
72
73 let root = find_repository_root()?;
74 let repo =
75 crate::commands::open_readonly_repository(&root).map_err(CliError::Repository)?;
76
77 let inputs = bridge::read_intent(&repo, &self.id)?;
78 let attestation = bridge::load_attestation(&repo, &self.id, &inputs)?;
79 project(&self.id, &inputs, &attestation, self.json)
80 }
81}

Callers

nothing calls this directly

Calls 6

intent_showFunction · 0.85
find_repository_rootFunction · 0.85
open_readonly_repositoryFunction · 0.85
read_intentFunction · 0.85
projectFunction · 0.70
load_attestationFunction · 0.50

Tested by

no test coverage detected