From c38e5cef34aa697899692a857ee38193b1200cf4 Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Mon, 13 Jul 2020 09:05:56 +0200 Subject: [PATCH] add alias for kubeconfig merge --- cmd/kubeconfig/kubeconfigMerge.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/kubeconfig/kubeconfigMerge.go b/cmd/kubeconfig/kubeconfigMerge.go index 54e813a66..574213dda 100644 --- a/cmd/kubeconfig/kubeconfigMerge.go +++ b/cmd/kubeconfig/kubeconfigMerge.go @@ -50,8 +50,9 @@ func NewCmdKubeconfigMerge() *cobra.Command { // create new command cmd := &cobra.Command{ Use: "merge [CLUSTER [CLUSTER [...]] | --all]", - Long: `Merge kubeconfig from cluster(s) into existing kubeconfig/file.`, - Short: "Merge kubeconfig from cluster(s) into existing kubeconfig/file.", + Aliases: []string{"write"}, + Long: `Merge/Write kubeconfig(s) from cluster(s) into existing kubeconfig/file.`, + Short: "Merge/Write kubeconfig(s) from cluster(s) into existing kubeconfig/file.", ValidArgsFunction: util.ValidArgsAvailableClusters, Args: func(cmd *cobra.Command, args []string) error { if (len(args) < 1 && !mergeKubeconfigFlags.all) || (len(args) > 0 && mergeKubeconfigFlags.all) {