ui

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(m *Model) error

Run starts the Bubble Tea program.

Types

type Model

type Model struct {
	Selected   *host.Host
	PinToggled bool
	// contains filtered or unexported fields
}

Model is the top-level Bubble Tea model.

func New

func New(hosts []host.Host, verbose bool, sshOpts string) *Model

New creates a new UI model.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init implements tea.Model.

func (*Model) Update

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

Update implements tea.Model.

func (*Model) View

func (m *Model) View() string

View implements tea.Model.

Jump to

Keyboard shortcuts

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