cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HelpTopics = map[string]map[string]string{
	"environment": {
		"short": "Environment variables that can be used with gh",
		"long": heredoc.Doc(`
			{{bold "RELIABLY_HOST:"}} specify the Reliably hostname for commands making
			API requests that would otherwise assume the "reliably.com" host.

			{{bold "RELIABLY_TOKEN:"}} an authentication token for reliably.com API
			requests. Setting this avoids to login and takes precedence over
			previously stored credentials.
		`),
	},
}

Functions

func Execute

func Execute()

Execute the root command and exit with nonzero code in case of errors

func FormatVersion

func FormatVersion(version string) string

FormatVersion returns a formatted string with Reliably CLI's version

func NewCmdAuth added in v0.3.0

func NewCmdAuth() *cobra.Command

func NewCmdCompletion added in v0.3.0

func NewCmdCompletion() *cobra.Command

func NewCmdDoc added in v0.3.0

func NewCmdDoc() *cobra.Command

func NewHelpTopic added in v0.3.0

func NewHelpTopic(topic string) *cobra.Command

Types

type Choice

type Choice []string

Choice is a list of string

func (Choice) Has

func (list Choice) Has(a string) bool

Has indicates whether the string slice contains the value

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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