task

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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,
	}
)
View Source
var (
	// StopCmd represents the command that stops the running task
	StopCmd = &cobra.Command{
		Use:     "stop",
		Aliases: []string{"st"},
		Short:   "Stop the running task",
		Args:    cobra.ExactArgs(0),
		RunE:    stopTask,
	}
)
View Source
var (
	// UpdateCmd represents the command that updates an existing task
	UpdateCmd = &cobra.Command{
		Use:     "update [task id]",
		Aliases: []string{"u"},
		Short:   "Update task details",
		Args:    cobra.ExactArgs(1),
		RunE:    updateTask,
	}
)

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