mirror of
https://github.com/beego/bee.git
synced 2025-06-30 15:40:19 +00:00
support generating docs outside $GOPATH
This commit is contained in:
5
main.go
5
main.go
@ -67,11 +67,10 @@ func main() {
|
|||||||
|
|
||||||
config.LoadConfig()
|
config.LoadConfig()
|
||||||
|
|
||||||
// Check if current directory is inside the GOPATH,
|
if cmd.IfGenerateDocs(c.Name(), args) {
|
||||||
// if so parse the packages inside it.
|
|
||||||
if utils.IsInGOPATH(currentpath) && cmd.IfGenerateDocs(c.Name(), args) {
|
|
||||||
swaggergen.ParsePackagesFromDir(currentpath)
|
swaggergen.ParsePackagesFromDir(currentpath)
|
||||||
}
|
}
|
||||||
|
|
||||||
os.Exit(c.Run(c, args))
|
os.Exit(c.Run(c, args))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user