Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCancelled = errors.New("cancelled")
ErrCancelled is returned when the user cancels input (Ctrl+C or Esc).
Functions ¶
func Confirm ¶
Confirm presents a y/n prompt and returns the boolean result. Returns ErrCancelled if the user presses Ctrl+C or Esc.
func PromptHidden ¶
PromptHidden prompts the user for hidden input (e.g. API keys). Returns ErrCancelled if the user presses Ctrl+C or Esc.
func PromptText ¶
PromptText prompts for text input with an optional default value shown as placeholder. If the user enters nothing and presses Enter, the default value is returned. Returns ErrCancelled if the user presses Ctrl+C or Esc.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.