Help us shape the future of Go! Take the 2026 Go Developer Survey

tui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package tui provides the interactive terminal dashboard for straddler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Config) error

Run opens the database, builds shared resources, and launches the TUI.

Types

type App

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

App is the root Bubbletea model.

func NewApp

func NewApp(cfg *config.Config, queue *db.Queue, reg registry.Client) App

NewApp constructs the root App model.

func (App) Init

func (a App) Init() tea.Cmd

Init starts all child views.

func (App) Update

func (a App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles all messages.

func (App) View

func (a App) View() string

View renders the full-screen TUI.

Directories

Path Synopsis
Package components provides reusable TUI sub-components.
Package components provides reusable TUI sub-components.
Package msgs defines all Bubbletea message types used by the TUI.
Package msgs defines all Bubbletea message types used by the TUI.
Package styles defines shared Lipgloss styles for the straddler TUI.
Package styles defines shared Lipgloss styles for the straddler TUI.
Package views contains the individual screen models for the straddler TUI.
Package views contains the individual screen models for the straddler TUI.

Jump to

Keyboard shortcuts

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