mirror of
https://github.com/spf13/cobra.git
synced 2024-11-15 17:58:18 -07:00
fix duplicated dir
This commit is contained in:
parent
221bae3986
commit
3c42f846c2
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user