commands

package
v6.22.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	APIVersion() string
	BinaryName() string
	ColorEnabled() config.ColorSetting
	CurrentUser() (config.User, error)
	Locale() string
	Plugins() map[string]config.Plugin
	SetTargetInformation(api string, apiVersion string, auth string, loggregator string, doppler string, uaa string, routing string, skipSSLValidation bool)
	SetTokenInformation(accessToken string, refreshToken string, sshOAuthClient string)
	Target() string
	TargetedOrganization() config.Organization
	TargetedSpace() config.Space
	Experimental() bool
}

Config a way of getting basic CF configuration

type ExtendedCommander

type ExtendedCommander interface {
	flags.Commander
	Setup(Config, UI) error
}

type UI

type UI interface {
	DisplayHeaderFlavorText(text string, keys ...map[string]interface{})
	DisplayHelpHeader(text string)
	DisplayNewline()
	DisplayOK()
	DisplayPair(attribute string, formattedString string, keys ...map[string]interface{})
	DisplayTable(prefix string, table [][]string)
	DisplayText(template string, data ...map[string]interface{})
	DisplayTextWithKeyTranslations(template string, keysToTranslate []string, data ...map[string]interface{})
}

UI is the interface to STDOUT

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter
ui
package ui will provide hooks into STDOUT, STDERR and STDIN.
package ui will provide hooks into STDOUT, STDERR and STDIN.
uifakes
This file was generated by counterfeiter
This file was generated by counterfeiter
v2
v2fakes
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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