Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompt ¶
type Prompt struct {
// contains filtered or unexported fields
}
Prompt prompts for interactive questions.
func (*Prompt) Confirm ¶
Confirm prompts for a confirmation, it accepts "yes/no" answers:
- "y", "yes", "Y", "Yes"
- "n", "no", "N", "No"
defaultChoice is the default answer to fallback to in case no explicit input is provided (eg. user just pressed ENTER).
Click to show internal directories.
Click to hide internal directories.