app

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package app hosts the root Bubble Tea model: the view stack, global keys, overlays (command bar), and message routing. Views own the body region; the app owns all other chrome.

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 application model.

func New

func New(cfg config.Config, profiles []dbx.Profile, registry *resource.Registry, pool *dbx.Pool, eng *engine.Engine, launchArgs []string, launchTab string) Model

New builds the root model. When cfg.Profile is set the picker is skipped. launchArgs is an optional tokenized command (same grammar as the ':' bar) opened in place of the default resource on the first profile selection; empty opens the default. launchTab is the optional `--tab` selection applied when the launch command auto-opens a specific item (see launchView).

func (Model) Init

func (m Model) Init() tea.Cmd

Init starts the heartbeat and the first view.

func (Model) Update

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

Update routes: window size → app messages → command bar overlay → global keys → top view.

func (Model) View

func (m Model) View() tea.View

View assembles chrome + body.

Jump to

Keyboard shortcuts

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