mirror of
https://github.com/spf13/cobra
synced 2024-12-27 14:57:06 +00:00
fix duplicated dir
This commit is contained in:
parent
221bae3986
commit
3c42f846c2
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue