mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
24 lines
690 B
Go
24 lines
690 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/carapace-sh/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var configCmd = &cobra.Command{
|
|
Use: "config",
|
|
Short: "Manage configuration for a kubeadm cluster persisted in a ConfigMap in the cluster",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(configCmd).Standalone()
|
|
|
|
configCmd.PersistentFlags().String("kubeconfig", "", "The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.")
|
|
rootCmd.AddCommand(configCmd)
|
|
|
|
carapace.Gen(configCmd).FlagCompletion(carapace.ActionMap{
|
|
"kubeconfig": carapace.ActionFiles(),
|
|
})
|
|
}
|