command

package
v0.3.19 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddURLCallbackFlags

func AddURLCallbackFlags(cmd *cobra.Command, flags *URLCallbackFlags)

func FormatCurrentDate

func FormatCurrentDate(now time.Time) string

func NewAddAreaCmd

func NewAddAreaCmd(runE func(*cobra.Command, []string, string) error) *cobra.Command

func NewAddChecklistItemCmd

func NewAddChecklistItemCmd(runE func(*cobra.Command, []string, string, string, string) error) *cobra.Command

func NewAddChildTaskCmd

func NewAddChildTaskCmd(runE func(*cobra.Command, []string, string, string, string, string) error) *cobra.Command

func NewAddProjectCmd

func NewAddProjectCmd(runE func(*cobra.Command, []string, string, string, string) error) *cobra.Command

func NewAddTaskCmd

func NewAddTaskCmd(resolveDestination func(string, string) (string, string, error), runE func(*cobra.Command, []string, string, string, string, string, string, string, string) error) *cobra.Command

func NewAddTaskTagsCmd

func NewAddTaskTagsCmd(runE func(*cobra.Command, []string, string, string, string) error) *cobra.Command

func NewAppendTaskNotesCmd

func NewAppendTaskNotesCmd(runE func(*cobra.Command, []string, string, string, string, string) error) *cobra.Command

func NewAreasCmd

func NewAreasCmd(runE func(*cobra.Command, []string) error) *cobra.Command

func NewCloseCmd

func NewCloseCmd(runE func(*cobra.Command, []string) error) *cobra.Command

func NewDateCmd

func NewDateCmd(now func() time.Time) *cobra.Command

func NewDeleteChildTaskCmd

func NewDeleteChildTaskCmd(use, short string, runE func(*cobra.Command, []string, string, string, string, string, int) error) *cobra.Command

func NewDeleteCmd

func NewDeleteCmd(kind, name, short string, runE func(*cobra.Command, []string, string, string) error) *cobra.Command

func NewDeleteProjectCmd

func NewDeleteProjectCmd(runE func(*cobra.Command, []string, string, string) error) *cobra.Command

func NewDeleteTaskCmd

func NewDeleteTaskCmd(use, short string, runE func(*cobra.Command, []string, string, string) error) *cobra.Command

func NewEditAreaCmd

func NewEditAreaCmd(runE func(*cobra.Command, []string, string, string) error) *cobra.Command

func NewEditChildTaskCmd

func NewEditChildTaskCmd(runE func(*cobra.Command, []string, string, string, string, string, int, string, string) error) *cobra.Command

func NewEditProjectCmd

func NewEditProjectCmd(runE func(*cobra.Command, []string, string, string, string, string) error) *cobra.Command

func NewListChildTasksCmd

func NewListChildTasksCmd(runE func(*cobra.Command, []string, string, string) error) *cobra.Command

func NewListsCmd

func NewListsCmd(runE func(*cobra.Command, []string) error) *cobra.Command

func NewMoveProjectCmd

func NewMoveProjectCmd(runE func(*cobra.Command, []string, string, string, map[string]string) error) *cobra.Command

func NewMoveTaskCmd

func NewMoveTaskCmd(runE func(*cobra.Command, []string, string, string, map[string]string) error) *cobra.Command

func NewOpenCmd

func NewOpenCmd(runE func(*cobra.Command, []string) error) *cobra.Command

func NewProjectsCmd

func NewProjectsCmd(runE func(*cobra.Command, []string, bool) error) *cobra.Command

func NewRemoveTaskTagsCmd

func NewRemoveTaskTagsCmd(runE func(*cobra.Command, []string, string, string, string) error) *cobra.Command

func NewReorderAreaItemsCmd

func NewReorderAreaItemsCmd(runE func(*cobra.Command, []string, string, string, []string) error, parseCSV func(string) []string) *cobra.Command

func NewReorderProjectItemsCmd

func NewReorderProjectItemsCmd(runE func(*cobra.Command, []string, string, string, []string) error, parseCSV func(string) []string) *cobra.Command

func NewSearchCmd

func NewSearchCmd(runE func(*cobra.Command, []string, string, string, bool) error) *cobra.Command

func NewSetTagsCmd

func NewSetTagsCmd(runE func(*cobra.Command, []string, string, string, string) error) *cobra.Command

func NewSetTaskDateCmd

func NewSetTaskDateCmd(runE func(*cobra.Command, []string, string, string, string, string, bool, bool) error) *cobra.Command

func NewSetTaskNotesCmd

func NewSetTaskNotesCmd(runE func(*cobra.Command, []string, string, string, string) error) *cobra.Command

func NewSetTaskTagsCmd

func NewSetTaskTagsCmd(runE func(*cobra.Command, []string, string, string, string) error) *cobra.Command

func NewShowTaskCmd

func NewShowTaskCmd(runE func(*cobra.Command, []string, string, string, bool, bool) error) *cobra.Command

func NewTagsAddCmd

func NewTagsAddCmd(runE func(*cobra.Command, []string, string, string) error) *cobra.Command

func NewTagsDeleteCmd

func NewTagsDeleteCmd(runE func(*cobra.Command, []string, string) error) *cobra.Command

func NewTagsEditCmd

func NewTagsEditCmd(runE func(*cobra.Command, []string, string, string, string, bool) error) *cobra.Command

func NewTagsListCmd

func NewTagsListCmd(runE func(*cobra.Command, []string, string) error) *cobra.Command

func NewTagsRootCmd

func NewTagsRootCmd(subcommands ...*cobra.Command) *cobra.Command

func NewTagsSearchCmd

func NewTagsSearchCmd(runE func(*cobra.Command, []string, string) error) *cobra.Command

func NewTasksCmd

func NewTasksCmd(runE func(*cobra.Command, []string, string, string, bool) error) *cobra.Command

func NewURLAddCmd

func NewURLAddCmd(normalizeChecklist func(string) string, runE func(*cobra.Command, []string, map[string]string) error) *cobra.Command

func NewURLAddProjectCmd

func NewURLAddProjectCmd(normalizeChecklist func(string) string, runE func(*cobra.Command, []string, map[string]string) error) *cobra.Command

func NewURLJSONCmd

func NewURLJSONCmd(runE func(*cobra.Command, []string, string, map[string]string, bool) error) *cobra.Command

func NewURLJSONCommand

func NewURLJSONCommand(use, short, commandName string, runE func(*cobra.Command, []string, string, map[string]string, bool) error) *cobra.Command

func NewURLRootCmd

func NewURLRootCmd(subcommands ...*cobra.Command) *cobra.Command

func NewURLSearchCmd

func NewURLSearchCmd(runE func(*cobra.Command, []string, map[string]string) error) *cobra.Command

func NewURLShowCmd

func NewURLShowCmd(runE func(*cobra.Command, []string, map[string]string) error) *cobra.Command

func NewURLUpdateCmd

func NewURLUpdateCmd(normalizeChecklist func(string) string, runE func(*cobra.Command, []string, map[string]string) error) *cobra.Command

func NewURLUpdateProjectCmd

func NewURLUpdateProjectCmd(runE func(*cobra.Command, []string, map[string]string) error) *cobra.Command

func NewURLVersionCmd

func NewURLVersionCmd(runE func(*cobra.Command, []string, map[string]string) error) *cobra.Command

func NewVersionCmd

func NewVersionCmd(version func() string) *cobra.Command

func ResolveAreaSelector

func ResolveAreaSelector(name, id string) (string, string, error)

func ResolveChildTaskMutationSelector

func ResolveChildTaskMutationSelector(parentName, parentID, childTaskName, childTaskID string, childTaskIndex int) (string, string, string, int, error)

func ResolveEntitySelector

func ResolveEntitySelector(name, id string) (string, string, error)

func ResolveMoveProjectDestination

func ResolveMoveProjectDestination(toArea, toAreaID string) (map[string]string, error)

func ResolveMoveTaskDestination

func ResolveMoveTaskDestination(toArea, toAreaID, toProject, toProjectID, toHeading, toHeadingID string) (map[string]string, error)

func ResolveParentSelector

func ResolveParentSelector(parentName, parentID string) (string, string, error)

func ResolveTaskDestination

func ResolveTaskDestination(areaName, projectName string, fallbackList func() string) (string, string, error)

func ResolveTaskParentSelector

func ResolveTaskParentSelector(taskName, taskID string) (string, string, error)

func ValidateURLJSONPayload

func ValidateURLJSONPayload(data string) (bool, error)

func WaitForAppState

func WaitForAppState(ctx context.Context, app AppController, bundleID string, wantRunning bool, timeout, poll time.Duration, sleep func(time.Duration)) error

Types

type AppController

type AppController interface {
	IsRunning(ctx context.Context, bundleID string) (bool, error)
	Quit(ctx context.Context, bundleID string) error
	Activate(ctx context.Context, bundleID string) error
}

type URLCallbackFlags

type URLCallbackFlags struct {
	XSuccess string
	XError   string
	XCancel  string
	XSource  string
}

func (URLCallbackFlags) Apply

func (flags URLCallbackFlags) Apply(params map[string]string)

Jump to

Keyboard shortcuts

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