Documentation
¶
Overview ¶
Package prompt provides utilities for interactive user prompts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompter ¶
type Prompter struct {
// contains filtered or unexported fields
}
Prompter handles interactive user prompts.
func (*Prompter) Confirm ¶
Confirm prompts the user with a yes/no question. Returns true if the user answers yes, false otherwise. The default behavior is to return false (no) if the user just presses enter.
func (*Prompter) ConfirmWithDefault ¶
ConfirmWithDefault prompts the user with a yes/no question with a specific default. If defaultYes is true, the default is yes (Y/n), otherwise it's no (y/N).
Click to show internal directories.
Click to hide internal directories.