cmd

package
v0.0.0-...-8cb9352 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxProjectNameLength     = 30 // Maximum length for project names
	MaxProjectDescLength     = 50 // Maximum length for project descriptions
	MaxTaskNameLength        = 20 // Maximum length for task names
	MaxTaskDescLength        = 30 // Maximum length for task descriptions
	MaxProjectNameWrapLength = 20 // Maximum length for wrapping project names in the UI
	MinArgsLength            = 2  // Minimum required arguments for certain commands
	PriorityHigh             = 1
	PriorityMedium           = 2
	PriorityLow              = 3
	PriorityNone             = 4
	PriorityEmpty            = 0
)

Constants for table printing. These are not user constraints.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command.

func NewCompletionCmd

func NewCompletionCmd() *cobra.Command

NewCompletionCmd creates and returns the 'completion' command, which generates shell completion scripts for Bash, Zsh, Fish, and PowerShell.

func NewEditCmd

func NewEditCmd(
	projectController *controllers.ProjectController,
	taskController *controllers.TaskController,
) *cobra.Command

NewEditCmd creates and returns the 'edit' command for editing projects or tasks.

func NewListCmd

func NewListCmd(
	projectController *controllers.ProjectController,
	taskController *controllers.TaskController,
) *cobra.Command

NewListCmd creates and returns the 'list' command for displaying projects or tasks.

func NewNewCmd

func NewNewCmd(
	projectController *controllers.ProjectController,
	taskController *controllers.TaskController,
) *cobra.Command

NewNewCmd creates and returns the 'new' command for creating projects or tasks.

func NewRemoveCmd

func NewRemoveCmd(
	projectController *controllers.ProjectController,
	taskController *controllers.TaskController,
) *cobra.Command

NewRemoveCmd creates and returns the 'remove' command for deleting projects or tasks.

func NewRootCmd

func NewRootCmd(
	projectController *controllers.ProjectController,
	taskController *controllers.TaskController,
) *cobra.Command

NewRootCmd creates and returns the root command for the CLI application.

func NewToggleCmd

func NewToggleCmd(taskController *controllers.TaskController) *cobra.Command

NewToggleCmd creates and returns the 'toggle' command for marking tasks as completed or uncompleted.

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd creates the version command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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