MCPcopy Create free account
hub / github.com/basecamp/hey-cli / newTodoCommand

Function newTodoCommand

internal/cmd/todo.go:16–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16func 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

Callers 1

newRootCmdFunction · 0.85

Calls 5

newTodoListCommandFunction · 0.85
newTodoAddCommandFunction · 0.85
newTodoCompleteCommandFunction · 0.85
newTodoUncompleteCommandFunction · 0.85
newTodoDeleteCommandFunction · 0.85

Tested by

no test coverage detected