terminal

package
v6.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2014 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

func (ui *FakeUI) Ask(prompt string, args ...interface{}) (answer string)

func (*FakeUI) AskForPassword

func (ui *FakeUI) AskForPassword(prompt string, args ...interface{}) (answer string)

func (*FakeUI) ClearOutputs

func (ui *FakeUI) ClearOutputs()

func (*FakeUI) ConfigFailure

func (ui *FakeUI) ConfigFailure(err error)

func (*FakeUI) Confirm

func (ui *FakeUI) Confirm(prompt string, args ...interface{}) 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) FailWithUsage

func (ui *FakeUI) FailWithUsage(ctxt *cli.Context, cmdName string)

func (*FakeUI) Failed

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

func (FakeUI) LoadingIndication

func (ui FakeUI) LoadingIndication()

func (*FakeUI) Ok

func (ui *FakeUI) Ok()

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 configuration.Reader)

func (*FakeUI) Table

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

func (FakeUI) Wait

func (c FakeUI) Wait(duration time.Duration)

func (*FakeUI) Warn

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

Jump to

Keyboard shortcuts

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