tui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppModel

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

AppModel is the root Bubbletea model for the Forge TUI.

func New

func New() AppModel

New creates a new AppModel with the default registry.

func (AppModel) Init

func (m AppModel) Init() tea.Cmd

func (AppModel) Update

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

func (AppModel) View

func (m AppModel) View() tea.View
type Sidebar struct {
	// contains filtered or unexported fields
}

Sidebar is a custom sidebar model with category headers and tool items.

func NewSidebar

func NewSidebar(reg *registry.Registry) Sidebar

NewSidebar creates a sidebar from the registry, grouped by category.

func (*Sidebar) SelectedID

func (s *Sidebar) SelectedID() string

SelectedID returns the tool ID of the currently selected item.

func (*Sidebar) SelectedName

func (s *Sidebar) SelectedName() string

SelectedName returns the display name of the currently selected tool.

func (*Sidebar) SetSize

func (s *Sidebar) SetSize(width, height int)

SetSize sets the sidebar dimensions.

func (*Sidebar) Update

func (s *Sidebar) Update(msg tea.Msg) tea.Cmd

Update handles key events for the sidebar.

func (*Sidebar) View

func (s *Sidebar) View() string

View renders the sidebar.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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