ui

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package ui responsible with ui

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(ts *services.TaskService) error

Types

type Item

type Item struct {
	ItemTitle, Desc string
}

func (Item) Description

func (i Item) Description() string

func (Item) FilterValue

func (i Item) FilterValue() string

func (Item) Title

func (i Item) Title() string

type Model

type Model struct {
	List list.Model

	TaskService *services.TaskService
	// contains filtered or unexported fields
}

func (Model) HandleCompleteTask

func (m Model) HandleCompleteTask() (tea.Model, tea.Cmd)

func (Model) HandleManualTask

func (m Model) HandleManualTask() (tea.Model, tea.Cmd)

func (Model) HandleResetTask

func (m Model) HandleResetTask() (tea.Model, tea.Cmd)

func (Model) HandleShowTask

func (m Model) HandleShowTask() (tea.Model, tea.Cmd)

func (Model) HandleStartTask

func (m Model) HandleStartTask() (tea.Model, tea.Cmd)

func (Model) HandleTaskStateMsg

func (m Model) HandleTaskStateMsg(msg taskStateMsg) (tea.Model, tea.Cmd)

func (Model) HandleTickMsg

func (m Model) HandleTickMsg(msg tickMsg) (tea.Model, tea.Cmd)

func (Model) HandleTotalDuration

func (m Model) HandleTotalDuration() (tea.Model, tea.Cmd)

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) InitManualInputs

func (m *Model) InitManualInputs()

InitManualInputs with placeholder and the other details

func (Model) Update

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

func (Model) View

func (m Model) View() string

View section

Jump to

Keyboard shortcuts

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