listui

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MainModel

type MainModel struct {

	// Selected instance (set when user presses enter)
	SelectedInstanceID   string
	SelectedInstanceName string

	Error error
	// contains filtered or unexported fields
}

MainModel is the top-level model for the list command TUI.

func NewListApp

func NewListApp(
	deployEngine engine.DeployEngine,
	logger *zap.Logger,
	search string,
	bluelinkStyles *stylespkg.Styles,
	headless bool,
	headlessWriter io.Writer,
	jsonMode bool,
) (*MainModel, error)

NewListApp creates a new list application with the given configuration.

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

Init initializes the main model.

func (MainModel) Update

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

Update handles messages for the main model.

func (MainModel) View

func (m MainModel) View() string

View renders the main model.

type PageLoadErrorMsg

type PageLoadErrorMsg struct {
	Err error
}

PageLoadErrorMsg is sent when loading a page fails.

type PageLoadedMsg

type PageLoadedMsg struct {
	Instances  []state.InstanceSummary
	TotalCount int
	Page       int
}

PageLoadedMsg is sent when a page of instances has been loaded.

Jump to

Keyboard shortcuts

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