Documentation ¶
Index ¶
- type CliPrompter
- func (cli *CliPrompter) Choose(pr string, options []string) int
- func (cli *CliPrompter) ChooseWithDefault(pr string, defaultValue string, options []string) (string, error)
- func (cli *CliPrompter) Password(pr string) string
- func (cli *CliPrompter) RequestSecurityCode(pattern string) string
- func (cli *CliPrompter) String(pr string, defaultValue string) string
- func (cli *CliPrompter) StringRequired(pr string) string
- type Prompter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliPrompter ¶
type CliPrompter struct { }
CliPrompter used to prompt for cli input
func (*CliPrompter) Choose ¶
func (cli *CliPrompter) Choose(pr string, options []string) int
Choose given the choice return the option selected
func (*CliPrompter) ChooseWithDefault ¶
func (cli *CliPrompter) ChooseWithDefault(pr string, defaultValue string, options []string) (string, error)
ChooseWithDefault given the choice return the option selected with a default
func (*CliPrompter) Password ¶
func (cli *CliPrompter) Password(pr string) string
Password prompt for password which is required
func (*CliPrompter) RequestSecurityCode ¶
func (cli *CliPrompter) RequestSecurityCode(pattern string) string
RequestSecurityCode request a security code to be entered by the user
func (*CliPrompter) String ¶
func (cli *CliPrompter) String(pr string, defaultValue string) string
StringRequired prompt for string which is required
func (*CliPrompter) StringRequired ¶
func (cli *CliPrompter) StringRequired(pr string) string
StringRequired prompt for string which is required
Click to show internal directories.
Click to hide internal directories.