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) ErrWriter() io.Writer
- func (ui *FakeUI) Errors() string
- func (ui *FakeUI) Failed(template string, args ...interface{})
- func (ui *FakeUI) Info(template string, args ...interface{})
- func (ui *FakeUI) Inputs(lines ...string)
- func (ui *FakeUI) Ok()
- func (ui *FakeUI) Outputs() string
- func (ui *FakeUI) Print(template string, args ...interface{})
- func (ui *FakeUI) Prompt(message string, options *term.PromptOptions) *term.Prompt
- func (ui *FakeUI) Quiet() bool
- func (ui *FakeUI) Say(template string, args ...interface{})
- func (ui *FakeUI) SelectOne(choices []string, template string, args ...interface{}) (int, error)
- func (ui *FakeUI) SetErrWriter(buf io.Writer)
- func (ui *FakeUI) SetQuiet(quiet bool)
- func (ui *FakeUI) SetWriter(buf io.Writer)
- func (ui *FakeUI) Table(headers []string) term.Table
- func (ui *FakeUI) Verbose(template string, args ...interface{})
- 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 ¶
func (*FakeUI) SetErrWriter ¶ added in v1.7.3
NOTE: SetErrWriter is added here since the method is part of the UI type Interface interface the method is not needed for testing
func (*FakeUI) SetWriter ¶ added in v1.7.3
NOTE: SetErrWriter is added here since the method is part of the UI type Interface interface the method is not needed for testing
Click to show internal directories.
Click to hide internal directories.