constants

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

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 (
	ConfigUrl      = "Url"
	ConfigApiKey   = "ApiKey"
	ConfigSpace    = "Space"
	ConfigNoPrompt = "NoPrompt"
	// ConfigProxyUrl     = "ProxyUrl"
	ConfigEditor       = "Editor"
	ConfigShowOctopus  = "ShowOctopus"
	ConfigOutputFormat = "OutputFormat"
)

keys for key/value store config file

View Source
const (
	EnvOctopusUrl    = "OCTOPUS_URL"
	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
View Source
const (
	PromptCreateNew = "<Create New>"
)

Variables

This section is empty.

Functions

func IsProgrammaticOutputFormat added in v0.2.0

func IsProgrammaticOutputFormat(outputFormat string) bool

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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