Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶ added in v0.0.2
type Module interface {
// Name returns the module identifier
Name() string
// GetSteps returns the sequence of steps this module requires.
GetSteps() []any
}
Module represents a pluggable component that provides a sequence of steps
type Step ¶ added in v0.0.2
type Step interface {
// Label returns the prompt text for the UI (e.g., "Project Name")
Label() string
// DefaultValue returns a suggestion based on the current context
DefaultValue(ctx *context.Context) string
// OnInput executes the step logic.
OnInput(input string, ctx *context.Context) (newCtx *context.Context, continueFlow bool, err error)
}
Step represents a single interaction or execution unit in the wizard
type Wizard ¶
type Wizard struct {
// contains filtered or unexported fields
}
Wizard orchestrates the execution of multiple Steps
func (*Wizard) AlwaysShowAllLogs ¶ added in v0.0.2
StreamingLoggable implementation
func (*Wizard) WaitingForUser ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.