setup

package
v0.0.0-...-4301a79 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wizard

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

Wizard handles the first-run setup experience

func NewWizard

func NewWizard(styles WizardStyles) *Wizard

NewWizard creates a new setup wizard

func (*Wizard) GetConfig

func (w *Wizard) GetConfig() *config.Config

GetConfig returns the configured settings

func (*Wizard) IsComplete

func (w *Wizard) IsComplete() bool

IsComplete returns if the wizard is complete

func (*Wizard) SetSize

func (w *Wizard) SetSize(width, height int)

SetSize sets the wizard dimensions

func (*Wizard) Update

func (w *Wizard) Update(msg tea.Msg) tea.Cmd

Update handles input for the wizard

func (*Wizard) View

func (w *Wizard) View() string

View renders the wizard

type WizardStep

type WizardStep int

WizardStep represents the current step in the wizard

const (
	StepWelcome WizardStep = iota
	StepTheme
	StepAI
	StepConnection
	StepComplete
)

type WizardStyles

type WizardStyles struct {
	Container    lipgloss.Style
	Title        lipgloss.Style
	Subtitle     lipgloss.Style
	ASCII        lipgloss.Style
	Text         lipgloss.Style
	Selected     lipgloss.Style
	Unselected   lipgloss.Style
	Input        lipgloss.Style
	InputFocus   lipgloss.Style
	Label        lipgloss.Style
	Button       lipgloss.Style
	ButtonActive lipgloss.Style
	Hint         lipgloss.Style
	Success      lipgloss.Style
}

WizardStyles holds styling for the wizard

Jump to

Keyboard shortcuts

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