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.
Click to show internal directories.
Click to hide internal directories.