Documentation
¶
Index ¶
- func Confirm(in io.Reader, out io.Writer, prompt string, defaultYes bool) (bool, error)
- func Input(in io.Reader, out io.Writer, prompt string) (string, error)
- func Password(out io.Writer, prompt string) (string, error)
- func Select(in io.Reader, out io.Writer, prompt string, options []string) (int, error)
- type Prompter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Confirm ¶
Confirm asks a yes/no question. defaultYes controls the default when the user just presses Enter.
func Password ¶
Password reads a line of input with echo disabled (masked). Falls back to regular input if the reader is not a terminal.
Types ¶
Click to show internal directories.
Click to hide internal directories.