cmd

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 32 Imported by: 2

Documentation

Index

Constants

View Source
const (
	GAUserAgent       = "backyards-cli"
	GACategoryCommand = "clicmd"
	GACategoryLicense = "clilicense"
	GAActionReject    = "reject"

	AcceptLicense = "accept-license"
	LicenseLink   = "https://banzaicloud.com/docs/backyards/evaluation-license"
)

Variables

View Source
var RootCmd = &cobra.Command{
	Use:               "backyards",
	Short:             "Install and manage Backyards",
	SilenceErrors:     true,
	SilenceUsage:      false,
	DisableAutoGenTag: true,
}

RootCmd represents the root Cobra command

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately This is called by main.main(). It only needs to happen once to the RootCmd

func GetRootCommand

func GetRootCommand() *cobra.Command

GetRootCommand returns the cli root command

func Init

func Init(version string, commitHash string, buildDate string, tid string)

Init is a temporary function to set initial values in the root cmd

Types

This section is empty.

Jump to

Keyboard shortcuts

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