constants

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 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 (
	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 (
	ContextKeyTimeNow = "time.now" // holds a func() time.Time
)

flags for storing things in the go context

View Source
const (
	ExecutableName = "octopus"
)

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