task

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 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 {
	TaskService tui.TaskService
	Helpers     *tui.Helpers
}

func (*GroupListMaker) Make added in v0.2.0

func (m *GroupListMaker) Make(_ resource.Resource, width, height int) (tea.Model, error)

type GroupMaker added in v0.2.0

type GroupMaker struct {
	TaskService tui.TaskService
	RunService  tui.RunService
	Helpers     *tui.Helpers
	// contains filtered or unexported fields
}

GroupMaker makes taskgroup models

func NewGroupMaker added in v0.2.0

func NewGroupMaker(tasks tui.TaskService, runs tui.RunService, 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(parent resource.Resource, width, height int) (tea.Model, error)

type List added in v0.2.0

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

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) Title added in v0.2.0

func (m List) Title() string

func (List) Update added in v0.2.0

func (m List) Update(msg tea.Msg) (tea.Model, tea.Cmd)

type ListMaker

type ListMaker struct {
	RunService  tui.RunService
	TaskService tui.TaskService
	TaskMaker   tui.Maker
	Helpers     *tui.Helpers
}

ListMaker makes task list models

func NewListMaker added in v0.2.0

func NewListMaker(tasks tui.TaskService, runs tui.RunService, taskMaker *Maker, helpers *tui.Helpers) *ListMaker

NewListMaker constructs a task list model maker

func (*ListMaker) Make

func (mm *ListMaker) Make(parent resource.Resource, width, height int) (tea.Model, 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(res resource.Resource, width, height int) (tea.Model, error)

type Maker

type Maker struct {
	RunService  tui.RunService
	TaskService tui.TaskService
	Spinner     *spinner.Model
	Helpers     *tui.Helpers
	Logger      *logging.Logger
	Program     string
	// contains filtered or unexported fields
}

func (*Maker) Make

func (mm *Maker) Make(res resource.Resource, width, height int) (tea.Model, error)

func (*Maker) Update added in v0.2.0

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

Jump to

Keyboard shortcuts

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