listui

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

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