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

Function newTodoUncompleteCommand

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

Source from the content-addressed store, hash-verified

239}
240
241func newTodoUncompleteCommand() *todoUncompleteCommand {
242 todoUncompleteCommand := &todoUncompleteCommand{}
243 todoUncompleteCommand.cmd = &cobra.Command{
244 Use: "uncomplete <id>",
245 Short: "Mark a todo as incomplete",
246 Example: ` hey todo uncomplete 456`,
247 RunE: todoUncompleteCommand.run,
248 Args: usageExactOneArg(),
249 }
250
251 return todoUncompleteCommand
252}
253
254func (c *todoUncompleteCommand) run(cmd *cobra.Command, args []string) error {
255 if err := requireAuth(); err != nil {

Callers 1

newTodoCommandFunction · 0.85

Calls 1

usageExactOneArgFunction · 0.85

Tested by

no test coverage detected