Documentation ¶
Overview ¶
Package plain implements prompts using the standard library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plain ¶
type Plain struct{}
Plain implements Prompt using the standard library.
func (Plain) Confirm ¶
Confirm asks for user for a "Yes" or "No" response. The default value is used if the user presses enter without typing neither Y nor N.
func (Plain) Input ¶
Input asks the user for a string. If required is true then the string cannot be empty.
func (Plain) Password ¶
Password asks the user for a password. We just forward the call to Input with required set to true.
func (Plain) PressEnter ¶
PressEnter asks the user to press enter to continue.
Click to show internal directories.
Click to hide internal directories.