{"modulePath":"github.com/loggregator/cli","version":"v6.33.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\nPackage command should not be imported by external consumers. It was not designed for external use.\n\n## Constants\n\n```go\nconst ExperimentalWarning = \"This command is in EXPERIMENTAL stage and may change without notice\"\n```\n\n## Functions\n\n```go\nfunc MinimumAPIVersionCheck(current string, minimum string, customCommand ...string) error\n```\n\n```go\nfunc WarnAPIVersionCheck(config Config, ui UI) error\n```\n\n## Types\n\n```go\ntype Config interface {\n\tAccessToken() string\n\tAddPlugin(configv3.Plugin)\n\tAddPluginRepository(name string, url string)\n\tAPIVersion() string\n\tBinaryName() string\n\tBinaryVersion() string\n\tColorEnabled() configv3.ColorSetting\n\tCurrentUser() (configv3.User, error)\n\tDialTimeout() time.Duration\n\tDockerPassword() string\n\tExperimental() bool\n\tGetPlugin(pluginName string) (configv3.Plugin, bool)\n\tGetPluginCaseInsensitive(pluginName string) (configv3.Plugin, bool)\n\tHasTargetedOrganization() bool\n\tHasTargetedSpace() bool\n\tLocale() string\n\tMinCLIVersion() string\n\tOverallPollingTimeout() time.Duration\n\tPluginHome() string\n\tPluginRepositories() []configv3.PluginRepository\n\tPlugins() []configv3.Plugin\n\tPollingInterval() time.Duration\n\tRefreshToken() string\n\tRemovePlugin(string)\n\tSetAccessToken(token string)\n\tSetOrganizationInformation(guid string, name string)\n\tSetRefreshToken(token string)\n\tSetSpaceInformation(guid string, name string, allowSSH bool)\n\tSetTargetInformation(api string, apiVersion string, auth string, minCLIVersion string, doppler string, routing string, skipSSLValidation bool)\n\tSetTokenInformation(accessToken string, refreshToken string, sshOAuthClient string)\n\tSetUAAEndpoint(uaaEndpoint string)\n\tSkipSSLValidation() bool\n\tSSHOAuthClient() string\n\tStagingTimeout() time.Duration\n\tStartupTimeout() time.Duration\n\tTarget() string\n\tTargetedOrganization() configv3.Organization\n\tTargetedSpace() configv3.Space\n\tUAAOAuthClient() string\n\tUAAOAuthClientSecret() string\n\tUnsetOrganizationInformation()\n\tUnsetSpaceInformation()\n\tVerbose() (bool, []string)\n\tWritePluginConfig() error\n}\n```\nConfig a way of getting basic CF configuration\n\n```go\ntype ExtendedCommander interface {\n\tflags.Commander\n\tSetup(Config, UI) error\n}\n```\nExtendedCommander extends the go-flags Command interface by forcing a Setup function on all commands. This setup function should setup all command dependencies.\n\n```go\ntype SharedActor interface {\n\tCheckTarget(targetedOrganizationRequired bool, targetedSpaceRequired bool) error\n}\n```\n\n```go\ntype UI interface {\n\tDisplayBoolPrompt(defaultResponse bool, template string, templateValues ...map[string]interface{}) (bool, error)\n\tDisplayPasswordPrompt(template string, templateValues ...map[string]interface{}) (string, error)\n\tDisplayChangesForPush(changeSet []ui.Change) error\n\tDisplayError(err error)\n\tDisplayHeader(text string)\n\tDisplayInstancesTableForApp(table [][]string)\n\tDisplayKeyValueTable(prefix string, table [][]string, padding int)\n\tDisplayKeyValueTableForApp(table [][]string)\n\tDisplayKeyValueTableForV3App(table [][]string, crashedProcesses []string)\n\tDisplayLogMessage(message ui.LogMessage, displayHeader bool)\n\tDisplayNewline()\n\tDisplayNonWrappingTable(prefix string, table [][]string, padding int)\n\tDisplayOK()\n\tDisplayTableWithHeader(prefix string, table [][]string, padding int)\n\tDisplayText(template string, data ...map[string]interface{})\n\tDisplayTextWithFlavor(text string, keys ...map[string]interface{})\n\tDisplayTextWithBold(text string, keys ...map[string]interface{})\n\tDisplayWarning(formattedString string, keys ...map[string]interface{})\n\tDisplayWarnings(warnings []string)\n\tGetIn() io.Reader\n\tGetOut() io.Writer\n\tGetErr() io.Writer\n\tRequestLoggerFileWriter(filePaths []string) *ui.RequestLoggerFileWriter\n\tRequestLoggerTerminalDisplay() *ui.RequestLoggerTerminalDisplay\n\tTranslateText(template string, data ...map[string]interface{}) string\n\tUserFriendlyDate(input time.Time) string\n\tWriter() io.Writer\n}\n```\nUI is the interface to STDOUT\n\n","path":"github.com/loggregator/cli/command","name":"command","synopsis":"Package command should not be imported by external consumers.","isRedistributable":true}
