Versions in this module Expand all Collapse all v0 v0.16.0 Jun 14, 2026 Changes in this version + func Alert(message string) + func Bold(message string) + func Configure(cfg Config) + func Confirm(label string, opts ...ConfirmOption) bool + func Error(message string) + func ExitOnCancel(m any) + func Header(message string) + func Highlight(text string) string + func Info(message string) + func KeyValue(key, value string) + func LoadConfig(r io.Reader) error + func Multiselect(label string, options []string) []string + func Muted(message string) + func Newline() + func NextSteps(steps []string) + func Note(message string) + func Password(label string) string + func Progress(total int, fn func(increment func())) + func ResetConfig() + func Search(label string, fn func(query string) []string) string + func Select(label string, options []string, opts ...SelectOption) string + func SetCancelHandler(fn func()) + func SetWriter(w io.Writer) + func Spinner(message string, fn func() error) error + func Step(message string) + func StyleError(text string) string + func StyleMuted(text string) string + func StylePrimary(text string) string + func StyleSuccess(text string) string + func StyleWarning(text string) string + func Success(message string) + func Table(headers []string, rows [][]string) + func Text(label string, opts ...TextOption) string + func Tip(message string) + func Warning(message string) + type Canceller interface + Cancelled func() bool + type Colors struct + Error string + Muted string + Primary string + Success string + Warning string + type Config struct + Colors Colors + Symbols Symbols + func ActiveConfig() Config + type ConfirmOption func(*confirmConfig) + func WithDefaultNo() ConfirmOption + func WithDefaultYes() ConfirmOption + type SelectOption func(*selectConfig) + func WithSelectDefault(val string) SelectOption + type Symbols struct + Arrow string + Check string + Cross string + Tip string + Warn string + type TextOption func(*textConfig) + func WithDefault(s string) TextOption + func WithPlaceholder(s string) TextOption + func WithRequired() TextOption + func WithValidation(fn func(string) error) TextOption