cmd

package
v0.0.0-...-f83b169 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendDBTypes

func AppendDBTypes(p *flags.Parser)

AppendDBTypes populates choices for DBType option

Types

type Opts

type Opts struct {
	InitDB       *initDB       `command:"init-db" description:"Initialize an empty database"`
	MigrateDB    *migrateDB    `command:"migrate-db" description:"Migrate existing database"`
	AddTask      *addTask      `command:"add" description:"Add a new task" alias:"new" alias:"new-task"`
	ListTask     *listTask     `command:"list" description:"List tasks"`
	CompleteTask *completeTask `command:"done" description:"Complete a task" alias:"complete" alias:"close"`
	DeleteTask   *deleteTask   `command:"delete" description:"Delete a task" alias:"cancel" alias:"remove" alias:"erase"`
}

Opts is the list of commands and options

Jump to

Keyboard shortcuts

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