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

Method run

atomic-cli/src/commands/memory/show.rs:79–94  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

77
78impl Command for MemoryShow {
79 fn run(&self) -> CliResult<()> {
80 // Every form routes: the wire carries the lift inputs plus the raw
81 // attestation sources, so the projection runs client-side with
82 // the SAME bridge code over wire data.
83 if crate::commands::rpc::memory_show(self)? {
84 return Ok(());
85 }
86
87 let root = find_repository_root()?;
88 let repo =
89 crate::commands::open_readonly_repository(&root).map_err(CliError::Repository)?;
90
91 let inputs = bridge::read_memory(&repo, &self.id)?;
92 let attestation = bridge::load_attestation(&repo, &self.id, &inputs)?;
93 project(&self.id, &inputs, &attestation, self.json)
94 }
95}

Callers

nothing calls this directly

Calls 6

memory_showFunction · 0.85
find_repository_rootFunction · 0.85
open_readonly_repositoryFunction · 0.85
read_memoryFunction · 0.85
load_attestationFunction · 0.70
projectFunction · 0.70

Tested by

no test coverage detected