Documentation ¶
Index ¶
- Constants
- Variables
- func CheckOverriddenOrg()
- func Execute()
- func FormatVersion(version string, buildDate string, revision string) string
- func NewCmdAuth() *cobra.Command
- func NewCmdCompletion() *cobra.Command
- func NewCmdRoot() *cobra.Command
- func NewCmdUpdate() *cobra.Command
- func NewCmdVersion() *cobra.Command
- func NewCmdWorkflow() *cobra.Command
- func NewHelpTopic(topic string) *cobra.Command
- func SetDefautOrganization()
- type Choice
- type CustomLogFormatter
- type UpdateOptions
- type WorkflowOptions
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 FormatVersion ¶
FormatVersion returns a formatted string with Reliably CLI's version
func NewCmdAuth ¶
func NewCmdCompletion ¶
func NewCmdRoot ¶
func NewCmdUpdate ¶ added in v0.16.0
func NewCmdVersion ¶
func NewCmdWorkflow ¶
func NewHelpTopic ¶
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 CustomLogFormatter ¶ added in v0.42.1
type CustomLogFormatter struct{}
CustomLogFormatter - implements the Logrus Formatter interface for customising log format.
type UpdateOptions ¶ added in v0.16.0
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
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 |
Click to show internal directories.
Click to hide internal directories.