tui

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, c *client.Client, session *pb.Session, reconfigure ...bool) error

Run launches the TUI for a given session.

Types

type App

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

App is the root Bubbletea v2 model.

func NewApp

func NewApp(c *client.Client, session *pb.Session, t theme.Theme, dark bool, reconfigure ...bool) App

NewApp creates the root TUI application model.

func (App) Init

func (a App) Init() tea.Cmd

func (App) Update

func (a App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (App) View

func (a App) View() tea.View

type ProvidersCheckedMsg

type ProvidersCheckedMsg struct {
	Providers []*pb.Provider
}

ProvidersCheckedMsg carries the result of the async provider list check.

type RPCErrorMsg

type RPCErrorMsg struct {
	Op  string
	Err error
}

RPCErrorMsg carries an error from an async RPC call.

type VersionNoticeMsg

type VersionNoticeMsg struct {
	Compatible        bool
	ReloadRecommended bool
	Message           string
}

VersionNoticeMsg carries a version compatibility message for the TUI.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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