tui

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package tui provides a Bubble Tea TUI for the hash derivation tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPalette added in v1.0.0

func ApplyPalette(p panels.Palette)

ApplyPalette updates all style variables to match the given palette.

func SetFuncs

func SetFuncs(
	derive func(string) types.Result,
	append func(string) error,
	load func() []types.HistoryEntry,
)

SetFuncs wires in the derivation and history functions.

Types

type Model

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

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

func NewModel

func NewModel() Model

NewModel creates the root model, loading existing history.

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 TUI panel components for the hash tool.
Package panels contains TUI panel components for the hash tool.

Jump to

Keyboard shortcuts

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