tui

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppTheme

type AppTheme struct {
	Primary    string
	Secondary  string
	Accent     string
	Text       string
	Subtle     string
	Error      string
	Warning    string
	Success    string
	Background string
	Surface    string
}

func TerminalTheme

func TerminalTheme() AppTheme

type ApplicationState

type ApplicationState int
const (
	StateWelcome ApplicationState = iota
	StateSelectWindowManager
	StateSelectTerminal
	StateMissingWMInstructions
	StateDetectingDeps
	StateDependencyReview
	StateGentooUseFlags
	StateGentooGCCCheck
	StateAuthMethodChoice
	StateFingerprintAuth
	StatePasswordPrompt
	StateInstallingPackages
	StateConfigConfirmation
	StateDeployingConfigs
	StateInstallComplete
	StateFinalComplete
	StateError
)

type ExistingConfigInfo

type ExistingConfigInfo struct {
	ConfigType string
	Path       string
	Exists     bool
}

type Model

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

func NewModel

func NewModel(version string, logFilePath string) Model

func (Model) GetLogChan added in v0.5.0

func (m Model) GetLogChan() <-chan string

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Styles

type Styles struct {
	Title           lipgloss.Style
	Normal          lipgloss.Style
	Bold            lipgloss.Style
	Subtle          lipgloss.Style
	Warning         lipgloss.Style
	Error           lipgloss.Style
	StatusBar       lipgloss.Style
	Key             lipgloss.Style
	SpinnerStyle    lipgloss.Style
	Success         lipgloss.Style
	HighlightButton lipgloss.Style
	SelectedOption  lipgloss.Style
	CodeBlock       lipgloss.Style
}

func NewStyles

func NewStyles(theme AppTheme) Styles

func (Styles) NewThemedProgress

func (s Styles) NewThemedProgress(width int) progress.Model

Jump to

Keyboard shortcuts

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