From 3c42f846c2b95e5a47f3793932a9f98f0e3cc49f Mon Sep 17 00:00:00 2001 From: jharshman Date: Wed, 30 Jan 2019 01:38:24 -0800 Subject: [PATCH] fix duplicated dir --- cobra/cmd/project.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cobra/cmd/project.go b/cobra/cmd/project.go index 9b56e84..3f7a4c8 100644 --- a/cobra/cmd/project.go +++ b/cobra/cmd/project.go @@ -91,7 +91,7 @@ func (p *Project) createLicenseFile() error { } func (c *Command) Create() error { - cmdFile, err := os.Create(fmt.Sprintf("%s/cmd/%s.go", c.Project.AbsolutePath, c.CmdName)) + cmdFile, err := os.Create(fmt.Sprintf("%s/%s.go", c.Project.AbsolutePath, c.CmdName)) if err != nil { return err }