Versions in this module Expand all Collapse all v0 v0.0.2 Aug 7, 2026 Changes in this version + const PageSize + func Form(ps []Param, values map[string]any) *huh.Form + func FuncMap() template.FuncMap + func Run(ps []Param, values map[string]any) error + func SetDefaults(ps []Param, values map[string]any) + func ShellQuote(s string) string + func SnakeCase(s string) string + func ValidateDefaults(ps []Param) error + type BoolParam struct + func NewBool(name, prompt string, def bool) *BoolParam + func (p *BoolParam) Apply(v Value) + func (p *BoolParam) Default() any + func (p *BoolParam) HuhField(values map[string]any) huh.Field + func (p *BoolParam) Name() string + func (p *BoolParam) Prompt() string + func (p *BoolParam) SetDefault(values map[string]any) + func (p *BoolParam) String() string + func (p *BoolParam) Type() Type + func (p *BoolParam) Value() Value + type ErrUnknownType struct + Name string + Type Type + func (e ErrUnknownType) Error() string + type MultiSelectParam struct + func NewMultiSelect(name, prompt string, options, def []string) *MultiSelectParam + func (p *MultiSelectParam) Apply(v Value) + func (p *MultiSelectParam) Default() any + func (p *MultiSelectParam) HuhField(values map[string]any) huh.Field + func (p *MultiSelectParam) Name() string + func (p *MultiSelectParam) Prompt() string + func (p *MultiSelectParam) SetDefault(values map[string]any) + func (p *MultiSelectParam) String() string + func (p *MultiSelectParam) Type() Type + func (p *MultiSelectParam) Value() Value + type NumberParam struct + func NewNumber(name, prompt string, def int, min, max *int) *NumberParam + func (p *NumberParam) Apply(v Value) + func (p *NumberParam) Default() any + func (p *NumberParam) HuhField(values map[string]any) huh.Field + func (p *NumberParam) Name() string + func (p *NumberParam) Prompt() string + func (p *NumberParam) SetDefault(values map[string]any) + func (p *NumberParam) String() string + func (p *NumberParam) Type() Type + func (p *NumberParam) Value() Value + type Param interface + Apply func(v Value) + Default func() any + HuhField func(values map[string]any) huh.Field + Name func() string + Prompt func() string + SetDefault func(values map[string]any) + String func() string + Type func() Type + Value func() Value + func Parse(specs SpecMap) ([]Param, error) + func ParseOne(name string, s Spec) (Param, error) + type PathParam struct + func NewDir(name, prompt, def string) *PathParam + func NewPath(name, prompt, def string) *PathParam + func (p *PathParam) Apply(v Value) + func (p *PathParam) Default() any + func (p *PathParam) HuhField(values map[string]any) huh.Field + func (p *PathParam) Name() string + func (p *PathParam) Prompt() string + func (p *PathParam) SetDefault(values map[string]any) + func (p *PathParam) String() string + func (p *PathParam) Type() Type + func (p *PathParam) Value() Value + type SecretParam struct + func NewSecret(name, prompt string) *SecretParam + func (p *SecretParam) Apply(v Value) + func (p *SecretParam) Default() any + func (p *SecretParam) HuhField(values map[string]any) huh.Field + func (p *SecretParam) Name() string + func (p *SecretParam) Prompt() string + func (p *SecretParam) SetDefault(values map[string]any) + func (p *SecretParam) String() string + func (p *SecretParam) Type() Type + func (p *SecretParam) Value() Value + type SelectParam struct + func NewSelect(name, prompt string, options []string, def string) *SelectParam + func (p *SelectParam) Apply(v Value) + func (p *SelectParam) Default() any + func (p *SelectParam) HuhField(values map[string]any) huh.Field + func (p *SelectParam) Name() string + func (p *SelectParam) Prompt() string + func (p *SelectParam) SetDefault(values map[string]any) + func (p *SelectParam) String() string + func (p *SelectParam) Type() Type + func (p *SelectParam) Value() Value + type Spec struct + Default any + Max *int + Min *int + Options []string + Prompt string + Type Type + type SpecMap map[string]Spec + type TextParam struct + func NewText(name, prompt, def string) *TextParam + func (p *TextParam) Apply(v Value) + func (p *TextParam) Default() any + func (p *TextParam) HuhField(values map[string]any) huh.Field + func (p *TextParam) Name() string + func (p *TextParam) Prompt() string + func (p *TextParam) SetDefault(values map[string]any) + func (p *TextParam) String() string + func (p *TextParam) Type() Type + func (p *TextParam) Value() Value + type TextareaParam struct + func NewTextarea(name, prompt, def string) *TextareaParam + func (p *TextareaParam) Apply(v Value) + func (p *TextareaParam) Default() any + func (p *TextareaParam) HuhField(values map[string]any) huh.Field + func (p *TextareaParam) Name() string + func (p *TextareaParam) Prompt() string + func (p *TextareaParam) SetDefault(values map[string]any) + func (p *TextareaParam) String() string + func (p *TextareaParam) Type() Type + func (p *TextareaParam) Value() Value + type Type string + const TypeBool + const TypeMultiSelect + const TypeNumber + const TypePath + const TypeSecret + const TypeSelect + const TypeText + const TypeTextarea + type Value struct + Bool bool + Int int + Kind Type + List []string + Path string + String string + func FromAny(v any) Value