tui

package
v0.12.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: 6 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 ApplyTheme

func ApplyTheme(accent, dim, value, border string)

ApplyTheme updates styles to match a named theme.

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

Jump to

Keyboard shortcuts

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