Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "completion <bash|zsh>", Short: "Generate completion scripts", Args: cobra.ExactValidArgs(1), ValidArgs: []string{"bash", "zsh"}, Run: func(cmd *cobra.Command, args []string) { rootCmd := cmd.Parent() switch args[0] { case "bash": rootCmd.GenBashCompletion(os.Stdout) case "zsh": rootCmd.GenZshCompletion(os.Stdout) } }, }
Cmd prints completion script for given shell
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.