(cmd *cobra.Command)
| 121 | } |
| 122 | |
| 123 | func addClusterConfigFlag(cmd *cobra.Command) { |
| 124 | cmd.Flags().StringVarP(&_flagClusterConfig, "config", "c", "", "path to a cluster configuration file") |
| 125 | err := cmd.Flags().SetAnnotation("config", cobra.BashCompFilenameExt, _configFileExts) |
| 126 | if err != nil { |
| 127 | exit.Error(err) // should never happen |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | func addClusterNameFlag(cmd *cobra.Command) { |
| 132 | cmd.Flags().StringVarP(&_flagClusterName, "name", "n", "", "name of the cluster") |