mirror of https://github.com/beego/bee.git
Merge 68b01db1dc
into 6a2f44720e
This commit is contained in:
commit
f61a76dd3a
5
main.go
5
main.go
|
@ -67,11 +67,10 @@ func main() {
|
|||
|
||||
config.LoadConfig()
|
||||
|
||||
// Check if current directory is inside the GOPATH,
|
||||
// if so parse the packages inside it.
|
||||
if utils.IsInGOPATH(currentpath) && cmd.IfGenerateDocs(c.Name(), args) {
|
||||
if cmd.IfGenerateDocs(c.Name(), args) {
|
||||
swaggergen.ParsePackagesFromDir(currentpath)
|
||||
}
|
||||
|
||||
os.Exit(c.Run(c, args))
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue