forked from mirror/cobra
Fix bug where project name isn't properly detected
This commit is contained in:
parent
24562666ea
commit
9bd7cfaa66
|
@ -112,8 +112,7 @@ func getSrcPath() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func projectName() string {
|
func projectName() string {
|
||||||
pp := ProjectPath()
|
return filepath.Base(ProjectPath())
|
||||||
return filepath.Dir(pp)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func guessProjectPath() {
|
func guessProjectPath() {
|
||||||
|
|
Loading…
Reference in New Issue