1
0
mirror of https://github.com/beego/bee.git synced 2024-11-22 05:00:54 +00:00

Parse AST even not in GOPATH

This commit is contained in:
Hanjiang Yu 2020-07-26 10:41:52 +08:00 committed by askuy
parent e0ada8860d
commit a68e8ae3e8

View File

@ -69,7 +69,7 @@ func main() {
// 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))