ui

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package ui simplifies the rendering layer of the todolist.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddingUI

func AddingUI(inputView string) string

func MainUI

func MainUI(todo *tl.Todo, saving bool, spinner string) string
func MenuUI() string

func Run

func Run(todoFilename string) error

Run is a blocking function that starts bubbletea.

func TaskUI

func TaskUI(t *tl.Task, cursor string) string

Types

type Model

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

func InitialModel

func InitialModel(todoFilename string) (*Model, error)

InitialModel initializes the bubbletea model with the initial state of the todo list.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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