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

tui

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package tui implements the Bubble Tea terminal UI for pharos.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Config, cfgPath string) error

Run builds and runs the TUI program for the given config. cfgPath is where changes (added/removed servers) are persisted.

Types

type AppModel

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

AppModel is the root Bubble Tea model.

func (AppModel) Init

func (m AppModel) Init() tea.Cmd

Init kicks off a refresh of every server.

func (AppModel) Update

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

Update handles incoming messages.

func (AppModel) View

func (m AppModel) View() string

View renders the full screen.

type FocusArea

type FocusArea int

FocusArea identifies which panel receives navigation keys.

const (
	FocusServers FocusArea = iota
	FocusContainers
)

Jump to

Keyboard shortcuts

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