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

Function newTodoCompleteCommand

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

Source from the content-addressed store, hash-verified

192 cmd *cobra.Command
193}
194
195func newTodoCompleteCommand() *todoCompleteCommand {
196 todoCompleteCommand := &todoCompleteCommand{}
197 todoCompleteCommand.cmd = &cobra.Command{
198 Use: "complete <id>",
199 Short: "Mark a todo as complete",
200 Example: ` hey todo complete 456`,
201 RunE: todoCompleteCommand.run,
202 Args: usageExactOneArg(),
203 }
204
205 return todoCompleteCommand
206}
207
208func (c *todoCompleteCommand) run(cmd *cobra.Command, args []string) error {

Callers 1

newTodoCommandFunction · 0.85

Calls 1

usageExactOneArgFunction · 0.85

Tested by

no test coverage detected