dashboard

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Command string
	UUID    string // non-empty for "test" and "run"
	Quit    bool
}

Action describes what the user selected before the dashboard exited.

type Model

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

Model is the interactive dashboard bubbletea model.

func New

func New(username, dir, lastErr string) Model

New creates a fresh dashboard model with user context. lastErr is an optional error message from the previous command; if non-empty the dashboard opens in stateResult so the user can read it and press esc to retry.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Result

func (m Model) Result() *Action

Result returns the selected action, or nil if the program exited abnormally.

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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