commands

package
v0.0.0-...-a10b8cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddCommand = cli.Command{
	Name:    "add",
	Aliases: []string{"a"},
	Usage:   "Add a todo item",
	Action:  addTodo,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:  "desc",
			Usage: "Description of the todo item",
		},
	},
}

Command to add a todo item

View Source
var DeleteCommand = cli.Command{
	Name:    "delete",
	Aliases: []string{"d"},
	Usage:   "Delete a todo item",
	Action:  deleteTodo,
}

Command to delete a todo item

View Source
var ShowCommand = cli.Command{
	Name:    "show",
	Aliases: []string{"s"},
	Usage:   "Show a todo items",
	Action:  showTodo,
}

Command to show all todo items

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址