Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NameValidArgs ¶
func NameValidArgs(c *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
NameValidArgs returns node names as per Cobra argument validation rules.
func SetClusterFlag ¶
SetClusterFlag adds a "--cluster" flag to a Cobra command, and sets it up for autocompletion with cluster names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.