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

Function newTodoDeleteCommand

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

Source from the content-addressed store, hash-verified

286}
287
288func newTodoDeleteCommand() *todoDeleteCommand {
289 todoDeleteCommand := &todoDeleteCommand{}
290 todoDeleteCommand.cmd = &cobra.Command{
291 Use: "delete <id>",
292 Short: "Delete a todo",
293 Example: ` hey todo delete 456`,
294 RunE: todoDeleteCommand.run,
295 Args: usageExactOneArg(),
296 }
297
298 return todoDeleteCommand
299}
300
301func (c *todoDeleteCommand) run(cmd *cobra.Command, args []string) error {
302 if err := requireAuth(); err != nil {

Callers 1

newTodoCommandFunction · 0.85

Calls 1

usageExactOneArgFunction · 0.85

Tested by

no test coverage detected