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

Function newHabitCommand

internal/cmd/habit.go:17–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17func newHabitCommand() *habitCommand {
18 habitCommand := &habitCommand{}
19 habitCommand.cmd = &cobra.Command{
20 Use: "habit",
21 Short: "Manage habit completions",
22 Annotations: map[string]string{
23 "agent_notes": "Subcommands: complete, uncomplete. Requires habit ID from calendar recordings.",
24 },
25 }
26
27 habitCommand.cmd.AddCommand(newHabitCompleteCommand().cmd)
28 habitCommand.cmd.AddCommand(newHabitUncompleteCommand().cmd)
29
30 return habitCommand
31}
32
33// complete
34

Callers 1

newRootCmdFunction · 0.85

Calls 2

newHabitCompleteCommandFunction · 0.85

Tested by

no test coverage detected