Documentation ¶ Index ¶ type Interface func New(ios *iostreams.IOStreams) Interface Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Interface ¶ type Interface interface { Input(prompt, defaultValue string) (string, error) Password(prompt string) (string, error) Confirm(prompt string, defaultYes bool) (bool, error) } Interface exposes interactive prompt helpers used by commands. func New ¶ func New(ios *iostreams.IOStreams) Interface New creates a prompter bound to the provided IO streams. When prompts are not possible (stdin not a TTY) the helper returns errors so commands can fallback to non-interactive flows. Source Files ¶ View all Source files prompter.go Click to show internal directories. Click to hide internal directories.