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

Method run

atomic-cli/src/commands/vault/intent.rs:193–228  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

191
192impl Command for Intent {
193 fn run(&self) -> CliResult<()> {
194 // Emit a one-time deprecation notice steering users to the
195 // canonical `atomic intent` family (Recording the Why), which
196 // scaffolds the full acceptance-criteria / why / tasks template.
197 let msg = match &self.command {
198 IntentCommands::Create(_) => {
199 "`atomic vault intent create` is deprecated; use `atomic intent new` instead \
200 (it scaffolds acceptance criteria / why / tasks)."
201 }
202 IntentCommands::List(_) => {
203 "`atomic vault intent list` is deprecated; use `atomic intent list` instead."
204 }
205 IntentCommands::Show(_) => {
206 "`atomic vault intent show` is deprecated; use `atomic intent show` instead."
207 }
208 IntentCommands::Update(_) => {
209 "`atomic vault intent update` is deprecated; use `atomic intent update` instead."
210 }
211 IntentCommands::Delete(_) => {
212 "`atomic vault intent delete` is deprecated; use `atomic intent delete` instead."
213 }
214 IntentCommands::Link(_) => {
215 "`atomic vault intent link` is deprecated; use `atomic intent link` instead."
216 }
217 };
218 eprintln!("warning: {msg}");
219
220 match &self.command {
221 IntentCommands::Create(cmd) => cmd.run(),
222 IntentCommands::List(cmd) => cmd.run(),
223 IntentCommands::Show(cmd) => cmd.run(),
224 IntentCommands::Update(cmd) => cmd.run(),
225 IntentCommands::Delete(cmd) => cmd.run(),
226 IntentCommands::Link(cmd) => cmd.run(),
227 }
228 }
229}
230
231// Create Subcommand

Callers

nothing calls this directly

Calls 15

find_repository_rootFunction · 0.85
resolve_active_sessionFunction · 0.85
vault_intent_createMethod · 0.80
vault_intent_listMethod · 0.80
vault_intent_showMethod · 0.80
is_noneMethod · 0.80
vault_intent_updateMethod · 0.80
with_promptMethod · 0.80
vault_intent_deleteMethod · 0.80
vault_intent_linkMethod · 0.80
cloneMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected