tui

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package tui provides a Bubble Tea terminal UI for subenum.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(opts Options) int

Start runs the TUI and returns an exit code: 1 if the TUI itself failed or the last scan failed (#55), else 0.

Types

type Model

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

Model is the root Bubble Tea model.

func New

func New(opts Options) Model

New creates the root model starting on the form screen.

func (Model) Init

func (m Model) Init() tea.Cmd

Init satisfies tea.Model.

func (Model) Update

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

Update satisfies tea.Model.

func (Model) View

func (m Model) View() string

View satisfies tea.Model.

type Options added in v0.9.0

type Options struct {
	// Version is reported in the run-quality summary.
	Version string
	// Settings are flag values from SUBENUM_* variables or the config file,
	// keyed by flag name. They pre-fill the form over its remembered values,
	// as they override built-in defaults on the command line (#118).
	Settings map[string]string
}

Options configure the TUI.

Jump to

Keyboard shortcuts

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