From 469c7ab780ea0a04a4df33db47909b8c9a6a8c57 Mon Sep 17 00:00:00 2001 From: guoxudong Date: Fri, 17 Jan 2020 16:54:22 +0800 Subject: [PATCH] fix merge example --- README.md | 8 ++++---- cmd/merge.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index bf543456..bf81017c 100644 --- a/README.md +++ b/README.md @@ -103,11 +103,11 @@ kubecm add -f example.yaml -c ### Merge the kubeconfig ```bash -# Merge kubeconfig in the test directory -kubecm merge -f test +# Merge kubeconfig in the directory +kubecm merge -f dir -# Merge kubeconfig in the test directory and overwrite the original kubeconfig file -kubecm merge -f test -c +# Merge kubeconfig in the directory and overwrite the original kubeconfig file +kubecm merge -f dir -c ``` ### Switch Kube Context interactively diff --git a/cmd/merge.go b/cmd/merge.go index 3023d90c..bfb8fc7a 100644 --- a/cmd/merge.go +++ b/cmd/merge.go @@ -144,10 +144,10 @@ func nameHandle(path string) string { func mergeExample() string { return ` -# Merge kubeconfig in the test directory -kubecm merge -f test +# Merge kubeconfig in the dir directory +kubecm merge -f dir -# Merge kubeconfig in the test directory and overwrite the original kubeconfig file -kubecm merge -f test -c +# Merge kubeconfig in the directory and overwrite the original kubeconfig file +kubecm merge -f dir -c ` }