cmd

package
v0.73.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 60 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeConfigEnvVar = "KUBECONFIG"
)

Variables

View Source
var (
	ErrCompletionShellNotSpecified = errors.New("Shell not specified.")
	ErrCompletionTooMayArguments   = errors.New("Too many arguments. Expected only the shell type.")
)
View Source
var (
	ErrCompatibilityMatrixTermsNotAccepted = errors.New("You must read and accept the Compatibility Matrix Terms of Service before using this command. To view, please visit https://vendor.replicated.com/compatibility-matrix")
)
View Source
var ErrWaitDurationExceeded = errors.New("wait duration exceeded")

Functions

func Execute

func Execute(rootCmd *cobra.Command, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

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 GetRootCmd added in v0.10.0

func GetRootCmd() *cobra.Command

RootCmd represents the base command when called without any subcommands

func NewCmdCompletion added in v0.57.0

func NewCmdCompletion(out io.Writer, parentName string) *cobra.Command

func RunCompletion added in v0.57.0

func RunCompletion(out io.Writer, cmd *cobra.Command, args []string) error

func Version added in v0.11.0

func Version() *cobra.Command

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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