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

Method run

atomic-cli/src/commands/intent/link.rs:30–45  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

28
29impl Command for IntentLink {
30 fn run(&self) -> CliResult<()> {
31 // Route every form through the service layer (the handler runs the
32 // same vault_intent_link domain call).
33 if crate::commands::rpc::intent_link(self)? {
34 return Ok(());
35 }
36
37 let root = find_repository_root()?;
38 let repo = crate::commands::open_repository_with_vault(&root)?;
39
40 repo.vault_intent_link(&self.id, &self.goal)
41 .map_err(CliError::Repository)?;
42 println!("Linked goal '{}' to intent '{}'", self.goal, self.id);
43
44 Ok(())
45 }
46}

Callers

nothing calls this directly

Calls 4

intent_linkFunction · 0.85
find_repository_rootFunction · 0.85
vault_intent_linkMethod · 0.80

Tested by

no test coverage detected