mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
fix duplicated dir
This commit is contained in:
parent
0edf725de7
commit
b5119a8266
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ func (p *Project) createLicenseFile() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Command) Create() 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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue