From eba34f40712e2534c4585d444f3e2bac270122ab Mon Sep 17 00:00:00 2001 From: Michael Cristina Date: Fri, 22 May 2020 18:46:39 -0500 Subject: [PATCH] Add init as an alias to create --- kustomize/internal/commands/create/create.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kustomize/internal/commands/create/create.go b/kustomize/internal/commands/create/create.go index 4d3d3bb64..7561e8ad6 100644 --- a/kustomize/internal/commands/create/create.go +++ b/kustomize/internal/commands/create/create.go @@ -33,9 +33,10 @@ type createFlags struct { func NewCmdCreate(fSys filesys.FileSystem, uf ifc.KunstructuredFactory) *cobra.Command { opts := createFlags{path: filesys.SelfDir} c := &cobra.Command{ - Use: "create", - Short: "Create a new kustomization in the current directory", - Long: "", + Use: "create", + Aliases: []string{"init"}, + Short: "Create a new kustomization in the current directory", + Long: "", Example: ` # Create a new overlay from the base '../base". kustomize create --resources ../base