app

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package app provides the main TUI application.

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(
	ctx context.Context,
	cfg *config.CLIConfig,
	theme styles.Theme,
	version string,
	services api.APIServices,
	authService auth.Auth,
	userPrefs preferences.UserPreferences,
	orgPrefs preferences.OrgPreferences,
	storage sqlite.Storage,
	syncer powersync.Syncer,
	scope log.Scope,
) *Model

New creates a new app model.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init initializes the app.

func (*Model) Update

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

Update handles messages.

func (*Model) View

func (m *Model) View() tea.View

View renders the app.

Directories

Path Synopsis
messagelist/block
Package block defines the shared interface for all visual blocks in the message list viewport.
Package block defines the shared interface for all visual blocks in the message list viewport.
messagelist/messagelisttest
Package messagelisttest provides test helpers for the messagelist package.
Package messagelisttest provides test helpers for the messagelist package.
Package keybar renders keybinding hints at the bottom of the app.
Package keybar renders keybinding hints at the bottom of the app.
Package onboarding provides the onboarding flow for new users.
Package onboarding provides the onboarding flow for new users.
accounts
Package accounts provides account selection and creation steps.
Package accounts provides account selection and creation steps.
auth
Package auth provides authentication steps for onboarding.
Package auth provides authentication steps for onboarding.
datadog
Package datadog provides Datadog configuration steps.
Package datadog provides Datadog configuration steps.
msgs
Package msgs defines the messages emitted by onboarding steps.
Package msgs defines the messages emitted by onboarding steps.
organizations
Package organizations provides organization selection and creation steps.
Package organizations provides organization selection and creation steps.
role
Package role provides the role selection step for onboarding.
Package role provides the role selection step for onboarding.
sync
Package sync provides the sync step for onboarding.
Package sync provides the sync step for onboarding.
workspaces
Package workspaces provides workspace selection steps.
Package workspaces provides workspace selection steps.
Package palette provides a command palette overlay for the TUI.
Package palette provides a command palette overlay for the TUI.
Package statusbar renders the persistent top bar for the Tero app.
Package statusbar renders the persistent top bar for the Tero app.
catalogstatus
Package catalogstatus renders the catalog health indicator in the status bar.
Package catalogstatus renders the catalog health indicator in the status bar.
policystatus
Package policystatus renders the policy work indicator in the status bar.
Package policystatus renders the policy work indicator in the status bar.
syncstatus
Package syncstatus renders sync connection status.
Package syncstatus renders sync connection status.
Package toast provides a toast notification component for the app.
Package toast provides a toast notification component for the app.

Jump to

Keyboard shortcuts

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