tasks

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatCmd

func CreatCmd() *cobra.Command

func DeleteCmd

func DeleteCmd() *cobra.Command

func EditCmd

func EditCmd() *cobra.Command

func ListCmd

func ListCmd() *cobra.Command

func Shorten

func Shorten(s string, maxLen int) string

func TasksCmd

func TasksCmd() *cobra.Command

Types

type CmdDelegate

type CmdDelegate struct {
	Verbose bool
}

func (CmdDelegate) Height

func (d CmdDelegate) Height() int

func (CmdDelegate) Render

func (d CmdDelegate) Render(w io.Writer, m list.Model, index int, item list.Item)

func (CmdDelegate) Spacing

func (d CmdDelegate) Spacing() int

func (CmdDelegate) Update

func (d CmdDelegate) Update(msg tea.Msg, m *list.Model) tea.Cmd

type CreateOptions

type CreateOptions struct {
	Title       string
	Description string
	Status      enums.TaskStatus
	Type        enums.TaskType
}

type DeleteOptions

type DeleteOptions struct {
	ID      int
	Confirm bool
}

type EditOptions

type EditOptions struct {
	ID          int
	Title       string
	Description string
	Status      enums.TaskStatus
	Type        enums.TaskType
}

type ListOptions

type ListOptions struct {
	Raw     bool
	Verbose bool
}

Jump to

Keyboard shortcuts

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