task

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 11 Imported by: 0

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