tui

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

Run launches the TUI digest viewer. It blocks until the user quits.

Types

type Model

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

Model is the bubbletea model for the interactive digest viewer. It holds the pre-rendered digest as a slice of lines and a scroll offset; all data is computed before the TUI starts, so Update only handles navigation.

func New

func New(art render.DigestArtifact) Model

New pre-renders the digest artifact to text lines for scrolling.

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