Documentation ¶
Index ¶
- Constants
- type FakeUI
- func (ui *FakeUI) Ask(prompt string, args ...interface{}) (answer string)
- func (ui *FakeUI) AskForPassword(prompt string, args ...interface{}) (answer string)
- func (ui *FakeUI) ClearOutputs()
- func (ui *FakeUI) ConfigFailure(err error)
- func (ui *FakeUI) Confirm(prompt string, args ...interface{}) bool
- func (ui *FakeUI) ConfirmDelete(modelType, modelName string) bool
- func (ui *FakeUI) ConfirmDeleteWithAssociations(modelType, modelName string) bool
- func (ui *FakeUI) DumpOutputs() string
- func (ui *FakeUI) DumpPrompts() string
- func (ui *FakeUI) DumpWarnOutputs() string
- func (ui *FakeUI) FailWithUsage(context *cli.Context)
- func (ui *FakeUI) Failed(message string, args ...interface{})
- func (ui FakeUI) LoadingIndication()
- func (ui *FakeUI) Ok()
- func (ui *FakeUI) PrintPaginator(rows []string, err error)
- func (ui *FakeUI) Say(message string, args ...interface{})
- func (ui *FakeUI) ShowConfiguration(config configuration.Reader)
- func (ui *FakeUI) Table(headers []string) term.Table
- func (c FakeUI) Wait(duration time.Duration)
- func (ui *FakeUI) Warn(message string, args ...interface{})
Constants ¶
View Source
const FailedWasCalled = "FailedWasCalled"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeUI ¶
type FakeUI struct { Outputs []string WarnOutputs []string Prompts []string PasswordPrompts []string Inputs []string FailedWithUsage bool FailedWithUsageCommandName string ShowConfigurationCalled bool }
func (*FakeUI) AskForPassword ¶
func (*FakeUI) ClearOutputs ¶
func (ui *FakeUI) ClearOutputs()
func (*FakeUI) ConfigFailure ¶
func (*FakeUI) ConfirmDelete ¶
func (*FakeUI) ConfirmDeleteWithAssociations ¶
func (*FakeUI) DumpOutputs ¶
func (*FakeUI) DumpPrompts ¶
func (*FakeUI) DumpWarnOutputs ¶
func (*FakeUI) FailWithUsage ¶
func (FakeUI) LoadingIndication ¶
func (ui FakeUI) LoadingIndication()
func (*FakeUI) PrintPaginator ¶
func (*FakeUI) ShowConfiguration ¶
func (ui *FakeUI) ShowConfiguration(config configuration.Reader)
Click to show internal directories.
Click to hide internal directories.