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

Method run

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

Source from the content-addressed store, hash-verified

63
64impl Command for IntentVerify {
65 fn run(&self) -> CliResult<()> {
66 if crate::commands::rpc::intent_verify(self)? {
67 return Ok(());
68 }
69
70 // Remote resolution (identities/resolve) needs async. Build a
71 // one-shot runtime rather than depending on the caller being inside
72 // tokio, exactly like `identity register`.
73 let rt = tokio::runtime::Runtime::new().map_err(|e| {
74 CliError::Internal(anyhow::anyhow!("Failed to create async runtime: {e}"))
75 })?;
76
77 rt.block_on(self.execute())
78 }
79}
80
81impl IntentVerify {

Callers

nothing calls this directly

Calls 2

intent_verifyFunction · 0.85
executeMethod · 0.45

Tested by

no test coverage detected