Documentation
¶
Index ¶
- func AskConfirm(prompt string) (bool, error)
- func AskPassword(prompt string) (string, error)
- func AskSelect(title string, options []huh.Option[string]) (string, error)
- func AskString(prompt string) (string, error)
- func IsTTY() bool
- func RequireArg(name, value string) (string, error)
- func RequireArgSensitive(name, value string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskConfirm ¶
AskConfirm prompts the user for a yes/no confirmation.
func AskPassword ¶
AskPassword prompts the user for a password (masked input).
func RequireArg ¶
RequireArg checks if a value is provided, prompts for it if TTY, or returns an error.
func RequireArgSensitive ¶
RequireArgSensitive is like RequireArg but uses a password input.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.