task

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupListMaker added in v0.2.0

type GroupListMaker struct {
	Tasks   *task.Service
	Helpers *tui.Helpers
}

func (*GroupListMaker) Make added in v0.2.0

func (m *GroupListMaker) Make(_ resource.ID, width, height int) (tui.ChildModel, error)

type GroupMaker added in v0.2.0

type GroupMaker struct {
	// contains filtered or unexported fields
}

GroupMaker makes taskgroup models

func NewGroupMaker added in v0.2.0

func NewGroupMaker(tasks *task.Service, plans *plan.Service, taskMaker *Maker, helpers *tui.Helpers) *GroupMaker

NewGroupMaker constructs a task group model maker

func (*GroupMaker) Make added in v0.2.0

func (mm *GroupMaker) Make(id resource.ID, width, height int) (tui.ChildModel, error)

type List added in v0.2.0

type List struct {
	table.Model[*task.Task]
	*tui.Helpers
	// contains filtered or unexported fields
}

func (List) BorderText added in v0.6.0

func (m List) BorderText() map[tui.BorderPosition]string

func (List) GetModuleIDs added in v0.6.0

func (m List) GetModuleIDs() ([]resource.ID, error)

func (List) GetWorkspaceIDs added in v0.6.0

func (m List) GetWorkspaceIDs() ([]resource.ID, error)

func (List) HelpBindings added in v0.2.0

func (m List) HelpBindings() []key.Binding

func (*List) Init added in v0.2.0

func (m *List) Init() tea.Cmd

func (*List) Update added in v0.2.0

func (m *List) Update(msg tea.Msg) tea.Cmd

type ListMaker

type ListMaker struct {
	Plans *plan.Service
	Tasks *task.Service

	TaskMaker tui.Maker
	Helpers   *tui.Helpers
}

ListMaker makes task list models

func NewListMaker added in v0.2.0

func NewListMaker(tasks *task.Service, plans *plan.Service, taskMaker *Maker, helpers *tui.Helpers) *ListMaker

NewListMaker constructs a task list model maker

func (*ListMaker) Make

func (mm *ListMaker) Make(_ resource.ID, width, height int) (tui.ChildModel, error)

type ListTaskMaker added in v0.2.0

type ListTaskMaker struct {
	*Maker
}

ListTaskMaker makes task models belonging to a task list model

func (*ListTaskMaker) Make added in v0.2.0

func (m *ListTaskMaker) Make(id resource.ID, width, height int) (tui.ChildModel, error)

type Maker

type Maker struct {
	Plans   *plan.Service
	Tasks   *task.Service
	Spinner *spinner.Model
	Helpers *tui.Helpers
	Logger  *logging.Logger
	Program string
	// contains filtered or unexported fields
}

func (*Maker) Make

func (mm *Maker) Make(id resource.ID, width, height int) (tui.ChildModel, error)

func (*Maker) Update added in v0.2.0

func (mm *Maker) Update(msg tea.Msg) tea.Cmd

type Model added in v0.6.0

type Model struct {
	*tui.Helpers
	// contains filtered or unexported fields
}

func (Model) BorderText added in v0.6.0

func (m Model) BorderText() map[tui.BorderPosition]string

func (Model) GetModuleIDs added in v0.6.0

func (m Model) GetModuleIDs() ([]resource.ID, error)

func (Model) GetWorkspaceIDs added in v0.6.0

func (m Model) GetWorkspaceIDs() ([]resource.ID, error)

func (Model) HelpBindings added in v0.6.0

func (m Model) HelpBindings() []key.Binding

func (*Model) Init added in v0.6.0

func (m *Model) Init() tea.Cmd

func (*Model) Update added in v0.6.0

func (m *Model) Update(msg tea.Msg) tea.Cmd

func (*Model) View added in v0.6.0

func (m *Model) View() string

View renders the viewport

Jump to

Keyboard shortcuts

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