Documentation ¶
Index ¶
- Constants
- type FakeUI
- func (ui *FakeUI) Ask(prompt string, args ...interface{}) string
- func (ui *FakeUI) AskForPassword(prompt string, args ...interface{}) string
- func (ui *FakeUI) ClearOutputs()
- 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) Failed(message string, args ...interface{})
- func (ui *FakeUI) LoadingIndication()
- func (ui *FakeUI) NotifyUpdateIfNeeded(config core_config.Reader)
- func (ui *FakeUI) Ok()
- func (ui *FakeUI) PanicQuietly()
- func (ui *FakeUI) PrintCapturingNoOutput(message string, args ...interface{})
- func (ui *FakeUI) PrintPaginator(rows []string, err error)
- func (ui *FakeUI) Say(message string, args ...interface{})
- func (ui *FakeUI) ShowConfiguration(config core_config.Reader)
- func (ui *FakeUI) Table(headers []string) term.Table
- func (ui *FakeUI) Wait(duration time.Duration)
- func (ui *FakeUI) Warn(message string, args ...interface{})
Constants ¶
View Source
const QuietPanic = "I should not print anything"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeUI ¶
type FakeUI struct { Outputs []string UncapturedOutput []string WarnOutputs []string Prompts []string PasswordPrompts []string Inputs []string FailedWithUsage bool FailedWithUsageCommandName string PanickedQuietly bool ShowConfigurationCalled bool // contains filtered or unexported fields }
func (*FakeUI) AskForPassword ¶
func (*FakeUI) ClearOutputs ¶
func (ui *FakeUI) ClearOutputs()
func (*FakeUI) ConfirmDelete ¶
func (*FakeUI) ConfirmDeleteWithAssociations ¶
func (*FakeUI) DumpOutputs ¶
func (*FakeUI) DumpPrompts ¶
func (*FakeUI) DumpWarnOutputs ¶
func (*FakeUI) LoadingIndication ¶
func (ui *FakeUI) LoadingIndication()
func (*FakeUI) NotifyUpdateIfNeeded ¶
func (ui *FakeUI) NotifyUpdateIfNeeded(config core_config.Reader)
func (*FakeUI) PanicQuietly ¶
func (ui *FakeUI) PanicQuietly()
func (*FakeUI) PrintCapturingNoOutput ¶
func (*FakeUI) PrintPaginator ¶
func (*FakeUI) ShowConfiguration ¶
func (ui *FakeUI) ShowConfiguration(config core_config.Reader)
Click to show internal directories.
Click to hide internal directories.