tasks

package
v0.0.0-...-50563c7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Tasks   []Task
	Current int
}

func (Model) AllComplete

func (m Model) AllComplete() bool

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) NextTask

func (m Model) NextTask() tea.Msg

func (Model) PrevTask

func (m Model) PrevTask() tea.Msg

func (Model) TimeFinished

func (m Model) TimeFinished(sum time.Duration) time.Duration

func (Model) TimeLeft

func (m Model) TimeLeft(sum time.Duration) time.Duration

func (Model) Update

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

func (Model) View

func (m Model) View() string

type NextTaskMsg

type NextTaskMsg struct{}

type PrevTaskMsg

type PrevTaskMsg struct{}

type Task

type Task struct {
	Name     string
	Duration time.Duration
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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