Help us shape the future of Go! Take the 2026 Go Developer Survey

setupwizard

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 9 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 {
	// contains filtered or unexported fields
}

Model is the Bubbletea model for the setup wizard.

func NewModel

func NewModel() Model

NewModel creates a new setup wizard model.

func (Model) Cancelled

func (m Model) Cancelled() bool

Cancelled returns true if the user cancelled the wizard.

func (Model) GetConfig

func (m Model) GetConfig() *config.Config

GetConfig returns the collected configuration after the wizard completes. Returns nil if the wizard was cancelled or hasn't completed yet. This is a pure getter — no keyring side-effects. The caller is responsible for persisting the GitHub token (see GitHubToken()).

func (Model) GitHubToken added in v0.7.2

func (m Model) GitHubToken() string

GitHubToken returns the GitHub personal access token entered during the wizard, or "" when the GitHub steps were skipped.

func (Model) Init

func (m Model) Init() tea.Cmd

Init starts the text cursor blink.

func (Model) Update

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

Update handles key messages and drives the wizard state machine.

func (Model) View

func (m Model) View() string

View renders the current wizard step.

Jump to

Keyboard shortcuts

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