app

package
v0.0.0-...-9759625 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package app wires the wrongtop root model: global keys, tab routing and the outer layout (tab bar + content + status bar).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Config, cfgPath, version string) error

Run starts the wrongtop TUI.

func RunRemote

func RunRemote(cfg *config.Config, cfgPath, version string, stream *remote.Client, addr string) error

RunRemote starts the wrongtop TUI fed by a remote stream; a reader goroutine pushes snapshots into the event loop.

Types

type Model

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

Model is the bubbletea root model.

func New

func New(cfg *config.Config, cfgPath, version string) *Model

New builds the root model with the tabs enabled by cfg.Modules.

func NewRemote

func NewRemote(cfg *config.Config, cfgPath, version string, stream *remote.Client, addr string) *Model

NewRemote builds the root model fed by a remote snapshot stream. Docker is unavailable remotely and the view is read-only.

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() tea.View

View implements tea.Model.

Jump to

Keyboard shortcuts

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