tui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package tui implements the Yaad terminal UI using Bubbletea. Screens: Dashboard → Search → Node Detail

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(eng *engine.Engine) error

Run starts the TUI.

Types

type Model

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

Model is the TUI state.

func New

func New(eng *engine.Engine) Model

New creates a new TUI model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init loads initial data.

func (Model) Update

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

Update handles messages and key events.

func (Model) View

func (m Model) View() string

View renders the current screen.

type Screen

type Screen int

Screen constants

const (
	ScreenDashboard Screen = iota
	ScreenSearch
	ScreenDetail
)

Jump to

Keyboard shortcuts

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