Merge pull request #2526 from mcristina422/patch-2

Add init as an alias to create
This commit is contained in:
Jeff Regan
2020-05-22 18:02:53 -07:00
committed by GitHub

View File

@@ -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