mirror of
https://github.com/beego/bee.git
synced 2024-11-21 18:40:54 +00:00
Parse AST even not in GOPATH
This commit is contained in:
parent
e0ada8860d
commit
a68e8ae3e8
2
main.go
2
main.go
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user