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