cmd

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const ClearPreviousLine = "\033[1A\033[K"
View Source
const ResetLine = "\r\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 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 NewCmdDiscover

func NewCmdDiscover() *cobra.Command

func NewCmdHistory

func NewCmdHistory() *cobra.Command

func NewCmdRoot

func NewCmdRoot() *cobra.Command

func NewCmdScan added in v0.5.0

func NewCmdScan(rootCmd *cobra.Command) *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

Types

type Choice

type Choice = cmdutil.Choice

type HistoryOptions

type HistoryOptions struct {
	IO         *iostreams.IOStreams
	Hostname   string
	HttpClient func() *http.Client

	History  *interface{}
	OrgID    string
	SourceID string
}

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
}

Jump to

Keyboard shortcuts

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