tui

package
v0.0.0-...-fc0f4c1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package tui is the Bubble Tea program: it counts down the current step and renders it with the Bubbles progress component, then asks the schedule provider for the next step.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model is the Bubble Tea model for a bub run.

func New

func New(p schedule.Provider, iconBytes []byte) (Model, bool)

New builds a Model from a schedule provider. It returns ok == false when the provider has no steps at all. iconBytes is the PNG to show in macOS notifications; pass nil to use the system default.

func (Model) Init

func (m Model) Init() tea.Cmd

Init implements tea.Model.

func (Model) Update

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

Update implements tea.Model.

func (Model) View

func (m Model) View() string

View implements tea.Model.

Jump to

Keyboard shortcuts

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