(&self)
| 28 | |
| 29 | impl 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 | } |
nothing calls this directly
no test coverage detected