tui

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPalette

func ApplyPalette(p panels.Palette)

ApplyPalette rebuilds all tui-level and panel-level styles from the palette.

func Start

func Start(d *node.Diff, theme string, version string) error

Start launches the diff TUI.

Types

type Model

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

Model is the root Bubble Tea model for the diff TUI.

func NewModel

func NewModel(d *node.Diff, version string) Model

NewModel creates the diff TUI model.

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

Directories

Path Synopsis
Package panels contains Bubble Tea sub-models for the diff TUI.
Package panels contains Bubble Tea sub-models for the diff TUI.

Jump to

Keyboard shortcuts

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