work

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(repository *work.Repository) *cobra.Command

NewCommand initializes the work command.

func NewProgressIndicator

func NewProgressIndicator() progress.Model

NewProgressIndicator initializes the progress indicator.

func NewTaskInput

func NewTaskInput() textinput.Model

NewTaskInput initializes the task input model.

func NewTimeInput

func NewTimeInput() textinput.Model

NewTimeInput initializes the custom time input model.

func NewTimeList

func NewTimeList() list.Model

NewTimeList initializes the time list model.

Types

type Model

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

Model is the TUI model for the work command.

func NewModel

func NewModel(repository *work.Repository) *Model

NewModel initializes the TUI model for the work command.

func (Model) Init

func (m Model) Init() tea.Cmd

Init will immediately start the timer if task and time flags were passed.

func (Model) Update

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

Update holds the update logic for the main work Model.

func (Model) View

func (m Model) View() string

View holds the view logic for the main work Model.

Jump to

Keyboard shortcuts

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