terminal

package
v6.18.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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) Ask

func (ui *FakeUI) Ask(prompt string) string

func (*FakeUI) AskForPassword

func (ui *FakeUI) AskForPassword(prompt string) string

func (*FakeUI) ClearOutputs

func (ui *FakeUI) ClearOutputs()

func (*FakeUI) Confirm

func (ui *FakeUI) Confirm(prompt string) bool

func (*FakeUI) ConfirmDelete

func (ui *FakeUI) ConfirmDelete(modelType, modelName string) bool

func (*FakeUI) ConfirmDeleteWithAssociations

func (ui *FakeUI) ConfirmDeleteWithAssociations(modelType, modelName string) bool

func (*FakeUI) DumpOutputs

func (ui *FakeUI) DumpOutputs() string

func (*FakeUI) DumpPrompts

func (ui *FakeUI) DumpPrompts() string

func (*FakeUI) DumpWarnOutputs

func (ui *FakeUI) DumpWarnOutputs() string

func (*FakeUI) Failed

func (ui *FakeUI) Failed(message string, args ...interface{})

func (*FakeUI) LoadingIndication

func (ui *FakeUI) LoadingIndication()

func (*FakeUI) NotifyUpdateIfNeeded

func (ui *FakeUI) NotifyUpdateIfNeeded(config coreconfig.Reader)

func (*FakeUI) Ok

func (ui *FakeUI) Ok()

func (*FakeUI) PanicQuietly

func (ui *FakeUI) PanicQuietly()

func (*FakeUI) PrintCapturingNoOutput

func (ui *FakeUI) PrintCapturingNoOutput(message string, args ...interface{})

func (*FakeUI) PrintPaginator

func (ui *FakeUI) PrintPaginator(rows []string, err error)

func (*FakeUI) Say

func (ui *FakeUI) Say(message string, args ...interface{})

func (*FakeUI) ShowConfiguration

func (ui *FakeUI) ShowConfiguration(config coreconfig.Reader)

func (*FakeUI) Table

func (ui *FakeUI) Table(headers []string) *term.UITable

func (*FakeUI) Wait

func (ui *FakeUI) Wait(duration time.Duration)

func (*FakeUI) Warn

func (ui *FakeUI) Warn(message string, args ...interface{})

func (*FakeUI) Writer

func (ui *FakeUI) Writer() io.Writer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL