Documentation ¶
Index ¶
- Constants
- type FakeUI
- func (ui *FakeUI) Ask(prompt string) string
- func (ui *FakeUI) AskForPassword(prompt string) string
- func (ui *FakeUI) ClearOutputs()
- func (ui *FakeUI) Confirm(prompt string) 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 coreconfig.Reader)
- func (ui *FakeUI) Ok()
- func (ui *FakeUI) Outputs() []string
- 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 coreconfig.Reader)
- func (ui *FakeUI) Table(headers []string) *term.UITable
- func (ui *FakeUI) UncapturedOutput() []string
- func (ui *FakeUI) Wait(duration time.Duration)
- func (ui *FakeUI) Warn(message string, args ...interface{})
- func (ui *FakeUI) Writer() io.Writer
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 { 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 coreconfig.Reader)
func (*FakeUI) PanicQuietly ¶
func (ui *FakeUI) PanicQuietly()
func (*FakeUI) PrintCapturingNoOutput ¶
func (*FakeUI) PrintPaginator ¶
func (*FakeUI) ShowConfiguration ¶
func (ui *FakeUI) ShowConfiguration(config coreconfig.Reader)
func (*FakeUI) UncapturedOutput ¶
Click to show internal directories.
Click to hide internal directories.