()
| 14 | } |
| 15 | |
| 16 | func newTodoCommand() *todoCommand { |
| 17 | todoCommand := &todoCommand{} |
| 18 | todoCommand.cmd = &cobra.Command{ |
| 19 | Use: "todo", |
| 20 | Short: "Manage todos", |
| 21 | Annotations: map[string]string{ |
| 22 | "agent_notes": "Subcommands: list, add, complete, uncomplete, delete. Use list --ids-only to pipe IDs to complete/delete.", |
| 23 | }, |
| 24 | } |
| 25 | |
| 26 | todoCommand.cmd.AddCommand(newTodoListCommand().cmd) |
| 27 | todoCommand.cmd.AddCommand(newTodoAddCommand().cmd) |
| 28 | todoCommand.cmd.AddCommand(newTodoCompleteCommand().cmd) |
| 29 | todoCommand.cmd.AddCommand(newTodoUncompleteCommand().cmd) |
| 30 | todoCommand.cmd.AddCommand(newTodoDeleteCommand().cmd) |
| 31 | |
| 32 | return todoCommand |
| 33 | } |
| 34 | |
| 35 | // list |
| 36 |
no test coverage detected