mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
Fix bug where project name isn't properly detected
This commit is contained in:
parent
24562666ea
commit
9bd7cfaa66
1 changed files with 1 additions and 2 deletions
|
@ -112,8 +112,7 @@ func getSrcPath() string {
|
|||
}
|
||||
|
||||
func projectName() string {
|
||||
pp := ProjectPath()
|
||||
return filepath.Dir(pp)
|
||||
return filepath.Base(ProjectPath())
|
||||
}
|
||||
|
||||
func guessProjectPath() {
|
||||
|
|
Loading…
Reference in a new issue