tui

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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 AgentsTab

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

AgentsTab is the sub-model for the Agents tab.

func NewAgentsTab

func NewAgentsTab(cfg *config.Config) AgentsTab

NewAgentsTab creates a new AgentsTab, scanning for agents immediately.

func (AgentsTab) Init

func (a AgentsTab) Init() tea.Cmd

Init implements tea.Model.

func (AgentsTab) Update

func (a AgentsTab) Update(msg tea.Msg) (AgentsTab, tea.Cmd)

Update handles messages for the agents tab.

func (AgentsTab) View

func (a AgentsTab) View() string

View implements tea.Model.

type GeneralTab

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

GeneralTab is the sub-model for the General settings tab.

func NewGeneralTab

func NewGeneralTab(cfg *config.Config) GeneralTab

NewGeneralTab creates a GeneralTab from the loaded config.

func (GeneralTab) Init

func (g GeneralTab) Init() tea.Cmd

Init implements tea.Model.

func (*GeneralTab) SetConfig

func (g *GeneralTab) SetConfig(cfg *config.Config)

SetConfig updates the config reference.

func (GeneralTab) Update

func (g GeneralTab) Update(msg tea.Msg) (GeneralTab, tea.Cmd)

Update implements tea.Model.

func (GeneralTab) View

func (g GeneralTab) View() string

View implements tea.Model.

type LayoutsTab

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

LayoutsTab is the sub-model for the Layouts browser tab.

func NewLayoutsTab

func NewLayoutsTab(ipcClient *ipc.Client, cfg *config.Config, activeLayout, defaultLayout string) LayoutsTab

NewLayoutsTab creates a new LayoutsTab sub-model.

func (LayoutsTab) Init

func (lt LayoutsTab) Init() tea.Cmd

Init implements tea.Model.

func (LayoutsTab) Update

func (lt LayoutsTab) Update(msg tea.Msg) (LayoutsTab, tea.Cmd)

Update implements tea.Model.

func (LayoutsTab) View

func (lt LayoutsTab) View() string

View implements tea.Model.

type SaveOverlay

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

SaveOverlay manages the config save diff preview and confirmation workflow.

func (SaveOverlay) Active

func (s SaveOverlay) Active() bool

Active reports whether the overlay is visible.

func (SaveOverlay) SaveSucceeded

func (s SaveOverlay) SaveSucceeded() bool

SaveSucceeded reports whether the last save completed without error.

func (*SaveOverlay) Show

func (s *SaveOverlay) Show(original, current *config.Config)

Show computes the diff and opens the preview overlay.

func (SaveOverlay) Update

func (s SaveOverlay) Update(msg tea.Msg, cfg *config.Config, client *ipc.Client, connected bool) SaveOverlay

Update handles input while the overlay is active.

func (SaveOverlay) View

func (s SaveOverlay) View(width, height int) string

View renders the overlay for the given content area dimensions.

type TUI

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

TUI represents the terminal user interface.

func New

func New(configPath string) *TUI

New creates a new TUI instance.

func (*TUI) Run

func (t *TUI) Run() error

Run starts the bubbletea TUI program.

type Tab

type Tab int

Tab identifies a TUI tab.

const (
	TabGeneral Tab = iota
	TabLayouts
	TabAgents
	TabTerminalClasses
)

func (Tab) String

func (t Tab) String() string

type TerminalsTab

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

TerminalsTab is the sub-model for the Terminal Classes tab.

func NewTerminalsTab

func NewTerminalsTab(cfg *config.Config) TerminalsTab

NewTerminalsTab creates a new TerminalsTab from the loaded config.

func (TerminalsTab) Init

func (t TerminalsTab) Init() tea.Cmd

Init implements tea.Model.

func (TerminalsTab) Update

func (t TerminalsTab) Update(msg tea.Msg) (TerminalsTab, tea.Cmd)

Update handles messages for the terminals tab.

func (TerminalsTab) View

func (t TerminalsTab) View() string

View implements tea.Model.

Jump to

Keyboard shortcuts

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