Documentation
¶
Overview ¶
Package prompt provides interactive text and secret prompts.
Index ¶
- type Prompter
- func (p *Prompter) Ask(label string) (string, error)
- func (p *Prompter) AskDefault(label, value string) (string, error)
- func (p *Prompter) AskOptional(label string) (string, error)
- func (p *Prompter) AskSecret(label string) (string, error)
- func (p *Prompter) AskSecretWithConfirmation(label, confirmationLabel string) (string, error)
- func (p *Prompter) Confirm(label string, defaultYes bool) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompter ¶
type Prompter struct {
// contains filtered or unexported fields
}
func (*Prompter) AskSecretWithConfirmation ¶
Click to show internal directories.
Click to hide internal directories.