More tests, better errors.

This commit is contained in:
jregan
2019-11-26 18:13:15 -08:00
parent a2b84fce86
commit f3e735153f
22 changed files with 112 additions and 59 deletions

View File

@@ -31,7 +31,7 @@ type createFlags struct {
// NewCmdCreate returns an instance of 'create' subcommand.
func NewCmdCreate(fSys filesys.FileSystem, uf ifc.KunstructuredFactory) *cobra.Command {
opts := createFlags{path: "."}
opts := createFlags{path: filesys.SelfDir}
c := &cobra.Command{
Use: "create",
Short: "Create a new kustomization in the current directory",