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 ¶
NewAgentsTab creates a new AgentsTab, scanning for agents immediately.
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) 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.
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) Update ¶
func (lt LayoutsTab) Update(msg tea.Msg) (LayoutsTab, tea.Cmd)
Update 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.
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) Update ¶
func (t TerminalsTab) Update(msg tea.Msg) (TerminalsTab, tea.Cmd)
Update handles messages for the terminals tab.