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

wizard

package
v0.0.0-...-61fbd95 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeCreate   = "create"
	ModeScaffold = "scaffold"
)
View Source
const Version = "0.1.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Step

type Step interface {
	Init() tea.Cmd
	Update(msg tea.Msg, state *WizardState) (Step, tea.Cmd)
	View(state *WizardState, width, height int) string
	Done() bool
}

Step is a single wizard screen.

type WizardState

type WizardState struct {
	ProjectName string
	ModulePath  string
	OutputDir   string
	Blueprint   *registry.Blueprint
	Features    []string
	Variables   map[string]string
	DryRun      bool

	// Extended fields for scaffold flow and git.
	RepoDir   string
	Profile   *scaffold.RepoProfile
	Force     bool
	GitInit   bool
	Mode      string
	Confirmed bool
}

WizardState holds shared wizard data across steps.

Jump to

Keyboard shortcuts

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