Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CreateCmd is the definition of the create command CreateCmd = &cobra.Command{ Use: "create [synopsis] [description]", Aliases: []string{"c"}, Short: "Create a task", Args: cobra.MaximumNArgs(createCmdMaxNumberArgs), RunE: createTask, } )
View Source
var ( // DeleteCmd represents the command to delete a task DeleteCmd = &cobra.Command{ Use: "delete [task id]", Aliases: []string{"d", "rm"}, Short: "Mark a task as deleted", Args: cobra.ExactArgs(1), RunE: deleteTask, } )
View Source
var ( // ListCmd represents the command to list tasks ListCmd = &cobra.Command{ Use: "list", Aliases: []string{"l", "ls"}, Short: "List tasks", RunE: listTasks, } )
View Source
var ( // SearchCmd represents the command that searches for tasks SearchCmd = &cobra.Command{ Use: "search [search terms]", Aliases: []string{"find"}, Short: "Search for tasks", Args: cobra.ExactArgs(1), RunE: searchTask, } )
View Source
var ( // StartCmd represents the command to start a task StartCmd = &cobra.Command{ Use: "start [task id/synopsis]", Aliases: []string{"s"}, Short: "Start a task", Args: cobra.ExactArgs(1), RunE: startTask, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.