Skip to content

Commit

Permalink
add alias for kubeconfig merge
Browse files Browse the repository at this point in the history
  • Loading branch information
iwilltry42 committed Jul 13, 2020
1 parent 7d384d8 commit c38e5ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/kubeconfig/kubeconfigMerge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c38e5ce

Please sign in to comment.