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
1 changed files with 1 additions and 1 deletions

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))