Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶ added in v1.1.0
func IsTerminal() bool
IsTerminal reports whether stdin is an interactive terminal that prompts can use.
Types ¶
type PromptUI ¶
type PromptUI interface {
AskForInput(title string, isRequired bool) (string, error)
AskForPassword(title string, isRequired bool) (string, error)
AskForSelect(title string, options []huh.Option[string], isRequired bool) (string, error)
AskForYesNo(title string, isRequired bool) (bool, error)
}
func NewPromptUI ¶
func NewPromptUI() PromptUI
Click to show internal directories.
Click to hide internal directories.