Documentation
¶
Index ¶
- type Step
- type Wizard
- func (w *Wizard) AlwaysShowAllLogs() bool
- func (w *Wizard) Cancel()
- func (w *Wizard) Change(newValue string)
- func (w *Wizard) Label() string
- func (w *Wizard) Name() string
- func (w *Wizard) OnTabActive()
- func (w *Wizard) SetLog(f func(message ...any))
- func (w *Wizard) Value() string
- func (w *Wizard) WaitingForUser() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Step ¶ added in v0.0.2
type Step struct {
LabelText string
DefaultFn func(ctx *context.Context) string
OnInputFn func(input string, ctx *context.Context) (continueFlow bool, err error)
OnShowFn func(log func(message ...any))
}
Step represents a single interaction or execution unit in the wizard. It is designed to be used as a literal for easy instantiation.
func (*Step) DefaultValue ¶ added in v0.0.2
DefaultValue returns a suggestion based on the current context.
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) OnTabActive ¶ added in v0.0.22
func (w *Wizard) OnTabActive()
TabAware implementation
func (*Wizard) WaitingForUser ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.