mirror of
https://github.com/beego/bee.git
synced 2024-06-16 13:53:32 +00:00
Merge fdf0e9c768
into e90da8f77b
This commit is contained in:
commit
9978addde2
9
main.go
9
main.go
|
@ -25,9 +25,15 @@ import (
|
|||
"github.com/beego/bee/utils"
|
||||
)
|
||||
|
||||
var (
|
||||
workspace = os.Getenv("BeeWorkspace")
|
||||
)
|
||||
|
||||
func main() {
|
||||
currentpath, _ := os.Getwd()
|
||||
|
||||
if workspace != "" {
|
||||
currentpath = workspace
|
||||
}
|
||||
flag.Usage = cmd.Usage
|
||||
flag.Parse()
|
||||
log.SetFlags(0)
|
||||
|
@ -66,7 +72,6 @@ func main() {
|
|||
if utils.IsInGOPATH(currentpath) && cmd.IfGenerateDocs(c.Name(), args) {
|
||||
swaggergen.ParsePackagesFromDir(currentpath)
|
||||
}
|
||||
|
||||
os.Exit(c.Run(c, args))
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user