Documentation ¶
Overview ¶
Package commands contains the opnictl sub-commands.
Index ¶
- Variables
- func BuildCreateClusterCmd() *cobra.Command
- func BuildCreateCmd() *cobra.Command
- func BuildCreateDemoCmd() *cobra.Command
- func BuildDeleteClusterCmd() *cobra.Command
- func BuildDeleteCmd() *cobra.Command
- func BuildDeleteDemoCmd() *cobra.Command
- func BuildGetCmd() *cobra.Command
- func BuildInstallCmd() *cobra.Command
- func BuildUninstallCmd() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
View Source
var CompletionCmd = &cobra.Command{ Use: "completion [bash|zsh|fish]", Short: "Generate completion script", Long: `To load completions: Bash: $ source <(yourprogram completion bash) # To load completions for each session, execute once: # Linux: $ yourprogram completion bash > /etc/bash_completion.d/yourprogram # macOS: $ yourprogram completion bash > /usr/local/etc/bash_completion.d/yourprogram Zsh: # If shell completion is not already enabled in your environment, # you will need to enable it. You can execute the following once: $ echo "autoload -U compinit; compinit" >> ~/.zshrc # To load completions for each session, execute once: $ yourprogram completion zsh > "${fpath[1]}/_yourprogram" # You will need to start a new shell for this setup to take effect. fish: $ yourprogram completion fish | source # To load completions for each session, execute once: $ yourprogram completion fish > ~/.config/fish/completions/yourprogram.fish `, DisableFlagsInUseLine: true, ValidArgs: []string{"bash", "zsh", "fish"}, Args: cobra.ExactValidArgs(1), 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) } }, }
Functions ¶
func BuildCreateClusterCmd ¶ added in v0.2.0
func BuildCreateCmd ¶
func BuildCreateDemoCmd ¶
func BuildDeleteClusterCmd ¶ added in v0.2.0
func BuildDeleteCmd ¶
func BuildDeleteDemoCmd ¶
func BuildGetCmd ¶
func BuildInstallCmd ¶
func BuildUninstallCmd ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.