cmd

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CompletionCmd = &cobra.Command{
	Use:                   "completion [bash|zsh|fish|powershell]",
	Short:                 "Generate completion script",
	Long:                  "To load completions",
	DisableFlagsInUseLine: true,
	ValidArgs:             []string{"bash", "zsh", "fish", "powershell"},
	Args:                  cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
	Run: func(cmd *cobra.Command, args []string) {
		switch args[0] {
		case "bash":
			cmd.Root().GenBashCompletion(os.Stdout)
		case "zsh":
			cmd.Root().GenZshCompletion(os.Stdout)
		case "fish":
			cmd.Root().GenFishCompletion(os.Stdout, true)
		case "powershell":
			cmd.Root().GenPowerShellCompletionWithDesc(os.Stdout)
		}
	},
}

Functions

func ApplyCmd

func ApplyCmd() *cobra.Command

func AttachCmd

func AttachCmd() *cobra.Command

func BundleCmd

func BundleCmd() *cobra.Command

func CordonCmd

func CordonCmd() *cobra.Command

func CreateCmd

func CreateCmd() *cobra.Command

func DeleteCmd

func DeleteCmd() *cobra.Command

func DescribeCmd

func DescribeCmd() *cobra.Command

func DetachCmd

func DetachCmd() *cobra.Command

func DisablePortalCmd

func DisablePortalCmd() *cobra.Command

func EnablePortalCmd

func EnablePortalCmd() *cobra.Command

func GetBoolIfConfigSet

func GetBoolIfConfigSet(key string) *bool

func GetBoolIfFlagSet

func GetBoolIfFlagSet(fs *pflag.FlagSet, flagName string) (*bool, error)

func GetCmd

func GetCmd() *cobra.Command

func InstallCmd

func InstallCmd() *cobra.Command

func InstallPortalCmd

func InstallPortalCmd() *cobra.Command

func NfsCmd

func NfsCmd() *cobra.Command

func PreflightCmd

func PreflightCmd() *cobra.Command

func UncordonCmd

func UncordonCmd() *cobra.Command

func UninstallCmd

func UninstallCmd() *cobra.Command

func UninstallPortalCmd

func UninstallPortalCmd() *cobra.Command

func UpdateCmd

func UpdateCmd() *cobra.Command

func UpgradeCmd

func UpgradeCmd() *cobra.Command

func VersionCmd

func VersionCmd() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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