cmd

package
v0.49.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResetLine         = "\r\033[K"
	ClearPreviousLine = "\033[1A\033[K"
)

Variables

View Source
var HelpTopics = map[string]map[string]string{
	"environment": {
		"short": "Environment variables that can be used with reliably",

		"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.

			{{bold "RELIABLY_ORG:"}} an organization identifier for the active organization. Setting
			this takes precedence over previously stored current organization.

			{{bold "RELIABLY_NO_UPDATE_NOTIFIER:"}} set to any value to disable update notifications.
			By default, reliably checks for new releases once every 24 hours and displays
			an upgrade notice on standard error if a newer version was found.

			{{bold "NO_COLOR:"}} set to any value to avoid printing ANSI escape sequences for color
			output.

			{{bold "DEBUG:"}} set to any value to enable verbose output.
		`),
	},
}

Functions

func CheckOverriddenOrg added in v0.19.4

func CheckOverriddenOrg()

CheckOverriddenOrg sets into the loaded config the org info (ID & name) from the overridden RELIABLY_ORG env var that accepts either an org UIUD or an org slug/name

func Execute

func Execute()

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

func FormatVersion

func FormatVersion(version string, buildDate string, revision string) string

FormatVersion returns a formatted string with Reliably CLI's version

func NewCmdAuth

func NewCmdAuth() *cobra.Command

func NewCmdCompletion

func NewCmdCompletion() *cobra.Command

func NewCmdRoot

func NewCmdRoot() *cobra.Command

func NewCmdUpdate added in v0.16.0

func NewCmdUpdate() *cobra.Command

func NewCmdVersion

func NewCmdVersion() *cobra.Command

func NewCmdWorkflow

func NewCmdWorkflow() *cobra.Command

func NewHelpTopic

func NewHelpTopic(topic string) *cobra.Command

func SetDefautOrganization added in v0.20.0

func SetDefautOrganization()

SetDefautOrganization defines the user's default organization as the current active one, in case the RELIABLY_ORG has not been set and no organization is set in the config.

Types

type Choice

type Choice = cmdutil.Choice

type CustomLogFormatter added in v0.42.1

type CustomLogFormatter struct{}

CustomLogFormatter - implements the Logrus Formatter interface for customising log format.

func (*CustomLogFormatter) Format added in v0.42.1

func (*CustomLogFormatter) Format(entry *log.Entry) ([]byte, error)

type UpdateOptions added in v0.16.0

type UpdateOptions struct {
	IO          *iostreams.IOStreams
	UpdaterRepo string

	Version   string
	NoConfirm bool
}

type WorkflowOptions

type WorkflowOptions struct {
	IO *iostreams.IOStreams

	Interactive bool
	Stdout      bool

	Platform string
}

Directories

Path Synopsis
org
set
aws
gcp
package gcp contains logic for gcp populate command
package gcp contains logic for gcp populate command
github
Package github contains logic for github populate command
Package github contains logic for github populate command
kube
Package kube contains logic for kube populate command
Package kube contains logic for kube populate command
run

Jump to

Keyboard shortcuts

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