Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagHelp = "help" FlagSpace = "space" FlagOutputFormat = "output-format" FlagOutputFormatLegacy = "outputFormat" FlagNoPrompt = "no-prompt" )
flags for command line switches
View Source
const ( ContextKeyTimeNow = "time.now" // func() time.Time ContextKeyOsOpen = "os.open" // func(string) (io.ReadCloser, error) )
flags for storing things in the go context
View Source
const ( OutputFormatJson = "json" OutputFormatBasic = "basic" OutputFormatTable = "table" // TODO I'd like to rename this to just "standard" or "default"; discuss with team )
values for output formats
View Source
const ( ConfigHost = "Host" ConfigApiKey = "ApiKey" ConfigSpace = "Space" ConfigNoPrompt = "NoPrompt" // ConfigProxyUrl = "ProxyUrl" ConfigEditor = "Editor" ConfigShowOctopus = "ShowOctopus" ConfigOutputFormat = "OutputFormat" )
keys for key/value store config file
View Source
const ( EnvOctopusHost = "OCTOPUS_HOST" EnvOctopusApiKey = "OCTOPUS_API_KEY" EnvOctopusSpace = "OCTOPUS_SPACE" EnvEditor = "EDITOR" EnvVisual = "VISUAL" EnvCI = "CI" )
View Source
const (
ExecutableName = "octopus"
)
View Source
const (
NoDescription = "No description provided"
)
View Source
const OctopusLogo = `` /* 523-byte string literal not displayed */
View Source
const (
PromptCreateNew = "<Create New>"
)
Variables ¶
This section is empty.
Functions ¶
func IsProgrammaticOutputFormat ¶ added in v0.2.0
IsProgrammaticOutputFormat tells you if it is acceptable for your command to print miscellaneous output to stdout, such as progress messages. If your command is capable of printing such things, you should check the output format first, lest you print a progress message into the middle of a JSON document by accident.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.