tui

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 8 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 {
	// contains filtered or unexported fields
}

Model is the top-level Bubble Tea model.

func NewModel

func NewModel(p *pipeline.Pipeline) *Model

NewModel creates a new Model wrapping the given pipeline.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init starts the pipeline and the tick loop.

func (*Model) SetProgram

func (m *Model) SetProgram(p *tea.Program)

SetProgram stores the tea.Program so the model can send messages from goroutines.

func (*Model) Update

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

func (*Model) View

func (m *Model) View() string

View renders the full TUI frame.

Jump to

Keyboard shortcuts

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