ui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model is the root Bubble Tea model.

func New

func New(snap *discover.Snapshot, dc *docker.Client) Model

New creates the initial model and starts the Docker polling goroutine.

func (Model) Init

func (m Model) Init() tea.Cmd

Init starts the spinner ticker and begins listening for poll updates.

func (Model) Update

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

Update routes incoming messages, mutating model state and returning any follow-up commands.

func (Model) View

func (m Model) View() string

View renders the current model state to a string for display.

type Row added in v0.2.0

type Row struct {
	Kind        RowKind
	Label       string
	ProjectName string
	ConfigFiles []string
	Graph       *dag.Graph
	Node        *dag.Node
	Standalone  *discover.Standalone
	ContainerID string
	// contains filtered or unexported fields
}

Row is one line in the unified navigation order.

func BuildRows added in v0.2.0

func BuildRows(snap *discover.Snapshot) []Row

BuildRows flattens a snapshot into render/navigation order.

type RowKind added in v0.2.0

type RowKind int

RowKind identifies a navigable or decorative row in the view.

const (
	RowProjectHeader RowKind = iota
	RowComposeNode
	RowStandaloneHeader
	RowStandalone
)

Row kind constants for the unified view.

Jump to

Keyboard shortcuts

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