ui

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 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 Model

type Model struct {

	// View state
	CurrentSection *help.Section

	QuitWithOutput bool
	// contains filtered or unexported fields
}

func New

func New(helpSystem *help.HelpSystem) *Model

func (*Model) FormatSectionForCopy

func (m *Model) FormatSectionForCopy(section *help.Section) string

FormatSectionForCopy exposes the internal method for testing

func (*Model) Init

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

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

SetSize sets the UI dimensions for testing

func (*Model) State

func (m *Model) State() int

State returns the current state for testing

func (*Model) Update

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

func (*Model) View

func (m *Model) View() string

Jump to

Keyboard shortcuts

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