| 4 | |
| 5 | #[derive(Debug, Clone, Subcommand)] |
| 6 | pub enum TodoCommand { |
| 7 | /// Create a new todo item |
| 8 | Create { |
| 9 | #[arg(short, long)] |
| 10 | title: Option<String>, |
| 11 | #[arg(short, long)] |
| 12 | content: Option<String>, |
| 13 | }, |
| 14 | /// List all todo items |
| 15 | List { |
| 16 | #[arg(short, long)] |
| 17 | title: Option<String>, |
| 18 | #[arg(short, long)] |
| 19 | content: Option<String>, |
| 20 | }, |
| 21 | } |
| 22 | |
| 23 | #[derive(Deserialize, Serialize)] |
| 24 | pub struct TodoItem { |
nothing calls this directly
no outgoing calls
no test coverage detected