1
0
镜像自地址 https://github.com/beego/bee.git 已同步 2025-07-05 18:20:18 +00:00

feat: support bee workspace specify

support bee workspace specify instead of current path only
这个提交包含在:
xhzhang
2017-12-21 23:32:40 +08:00
父节点 1937c6ddb7
当前提交 fdf0e9c768

查看文件

@ -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
}