Versions in this module Expand all Collapse all v0 v0.3.0 Apr 10, 2026 Changes in this version + const DefaultFlagOrder + func AddWizardFlag(cmd *cobra.Command) + func ApplyResultToFlags(cmd *cobra.Command, result map[string]any) error + func EnableWizard(cmd *cobra.Command) + func EnableWizardForCommands(cmds ...*cobra.Command) + func RegisterDefaultProvider(flagName string, fn DefaultProvider) + func RegisterDefaultProviderForCommand(cmd *cobra.Command, flagName string, fn DefaultProvider) + func RegisterProvider(flagName string, fn OptionProvider) + func RegisterProviderForCommand(cmd *cobra.Command, flagName string, fn OptionProvider) + func RunWizard(cmd *cobra.Command) (map[string]any, error) + func WrapPreRunEWithWizard(originalPreRunE func(cmd *cobra.Command, args []string) error, ...) func(cmd *cobra.Command, args []string) error + func WrapRunEWithWizard(originalRunE func(cmd *cobra.Command, args []string) error) func(cmd *cobra.Command, args []string) error + type DefaultProvider func() string + type FieldKind int + const KindConfirm + const KindInput + const KindMultiSelect + const KindNumber + const KindSelect + type FormField struct + ConfirmVal bool + Description string + InputValue string + Kind FieldKind + MultiSelect map[int]bool + Name string + Options []string + Required bool + Selected int + Title string + Validate func(string) error + Value interface{} + type FormGroup struct + Description string + Expanded bool + Fields []*FormField + Name string + Optional bool + Title string + type FormTheme struct + Description lipgloss.Style + Error lipgloss.Style + FocusedTitle lipgloss.Style + FocusedUnselected lipgloss.Style + GroupHeader lipgloss.Style + GroupHeaderDim lipgloss.Style + Help lipgloss.Style + InputBlurred lipgloss.Style + InputFocused lipgloss.Style + MultiSelectChecked lipgloss.Style + NormalTitle lipgloss.Style + SelectedOption lipgloss.Style + Separator lipgloss.Style + TabActive lipgloss.Style + TabCompleted lipgloss.Style + TabInactive lipgloss.Style + UnselectedOption lipgloss.Style + func DefaultFormTheme() *FormTheme + type GroupedWizardForm struct + func NewGroupedWizardForm(groups []*FormGroup) *GroupedWizardForm + func (f *GroupedWizardForm) Aborted() bool + func (f *GroupedWizardForm) Init() tea.Cmd + func (f *GroupedWizardForm) Run() error + func (f *GroupedWizardForm) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (f *GroupedWizardForm) View() string + func (f *GroupedWizardForm) WithFormTheme(theme *FormTheme) *GroupedWizardForm + func (f *GroupedWizardForm) WithTheme(theme *huh.Theme) *GroupedWizardForm + type OptionProvider func() []string