Documentation ¶
Index ¶
- func ChoicesPrompt(message string, choices ...string) choicesPrompt
- type FakeUI
- func (ui *FakeUI) Ask(template string, args ...interface{}) (string, error)
- func (ui *FakeUI) AskForPassword(template string, args ...interface{}) (string, error)
- func (ui *FakeUI) ChoicesPrompt(message string, choices []string, options *term.PromptOptions) *term.Prompt
- func (ui *FakeUI) Confirm(template string, args ...interface{}) (bool, error)
- func (ui *FakeUI) ConfirmWithDefault(defaultBool bool, template string, args ...interface{}) (bool, error)
- func (ui *FakeUI) Failed(template string, args ...interface{})
- func (ui *FakeUI) Inputs(lines ...string)
- func (ui *FakeUI) Ok()
- func (ui *FakeUI) Outputs() string
- func (ui *FakeUI) Prompt(message string, options *term.PromptOptions) *term.Prompt
- func (ui *FakeUI) Say(template string, args ...interface{})
- func (ui *FakeUI) SelectOne(choices []string, template string, args ...interface{}) (int, error)
- func (ui *FakeUI) Table(headers []string) term.Table
- func (ui *FakeUI) Warn(template string, args ...interface{})
- func (ui *FakeUI) Writer() io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChoicesPrompt ¶
Types ¶
type FakeUI ¶
type FakeUI struct { Prompts []string PasswordPrompts []string ChoicesPrompts []choicesPrompt WarnOutputs []string // contains filtered or unexported fields }
func (*FakeUI) AskForPassword ¶
func (*FakeUI) ChoicesPrompt ¶
func (*FakeUI) ConfirmWithDefault ¶
Click to show internal directories.
Click to hide internal directories.