| 200 | } |
| 201 | |
| 202 | pub fn command_name(&self) -> &'static str { |
| 203 | match self { |
| 204 | Self::Quit => "quit", |
| 205 | Self::Clear(_) => "clear", |
| 206 | Self::Agent(_) => "agent", |
| 207 | Self::Profile => "profile", |
| 208 | Self::Context(_) => "context", |
| 209 | Self::Knowledge(_) => "knowledge", |
| 210 | Self::PromptEditor(_) => "editor", |
| 211 | Self::Reply(_) => "reply", |
| 212 | Self::Compact(_) => "compact", |
| 213 | Self::Tools(_) => "tools", |
| 214 | Self::Issue(_) => "issue", |
| 215 | Self::Logdump(_) => "logdump", |
| 216 | Self::Changelog(_) => "changelog", |
| 217 | Self::Prompts(_) => "prompts", |
| 218 | Self::Hooks(_) => "hooks", |
| 219 | Self::Usage(_) => "usage", |
| 220 | Self::Mcp(_) => "mcp", |
| 221 | Self::Model(_) => "model", |
| 222 | Self::Experiment(_) => "experiment", |
| 223 | Self::Subscribe(_) => "subscribe", |
| 224 | Self::Tangent(_) => "tangent", |
| 225 | Self::Persist(sub) => match sub { |
| 226 | PersistSubcommand::Save { .. } => "save", |
| 227 | PersistSubcommand::Load { .. } => "load", |
| 228 | }, |
| 229 | Self::Checkpoint(_) => "checkpoint", |
| 230 | Self::Todos(_) => "todos", |
| 231 | Self::Paste(_) => "paste", |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | pub fn subcommand_name(&self) -> Option<&'static str> { |
| 236 | match self { |