Documentation
¶
Index ¶
- func Confirm(cmd *cli.Command, flagName, title, description string, defaultValue bool) (bool, error)
- func Field(field huh.Field) error
- func GetFormKeyMap() *huh.KeyMap
- func GetFormTheme(indent int) *huh.Theme
- func Hyperlink(url, text string) string
- func SError(indent int, format string, args ...any) string
- func SHeader(format string, args ...any) string
- func SInfo(indent int, format string, args ...any) string
- func SProgress(indent int, format string, args ...any) string
- func SProperty(indent int, key, msg string) string
- func SSuccess(indent int, format string, args ...any) string
- func SWarn(indent int, format string, args ...any) string
- func Spacer()
- func Spinner(message string, operation func() error) error
- type Group
- func Error(format string, args ...any) Group
- func Header(format string, args ...any) Group
- func Info(format string, args ...any) Group
- func NewGroup(silent bool) Group
- func Progress(format string, args ...any) Group
- func Property(key, msg string) Group
- func Success(format string, args ...any) Group
- func Warn(format string, args ...any) Group
- func (g Group) Confirm(cmd *cli.Command, flagName, title, description string, defaultValue bool) (bool, Group, error)
- func (g Group) Error(format string, args ...any) Group
- func (g Group) Field(field huh.Field) error
- func (g Group) Info(format string, args ...any) Group
- func (g Group) Progress(format string, args ...any) Group
- func (g Group) Property(key, msg string) Group
- func (g Group) Spinner(message string, operation func() error) error
- func (g Group) Success(format string, args ...any) Group
- func (g Group) Warn(format string, args ...any) Group
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFormKeyMap ¶
GetFormKeyMap returns the standard huh keymap used across all forms
func GetFormTheme ¶
GetFormTheme returns the standard huh theme used across all forms
Types ¶
Click to show internal directories.
Click to hide internal directories.