1
0
mirror of https://github.com/beego/bee.git synced 2025-07-02 03:20:19 +00:00

bee genenrate

This commit is contained in:
qiantao
2020-05-24 12:59:02 +08:00
parent 8360965cc7
commit 92de521f36
3 changed files with 43 additions and 24 deletions

View File

@ -81,14 +81,14 @@ func GenerateCode(cmd *commands.Command, args []string) int {
beeLogger.Log.Fatal("Command is missing")
}
gps := utils.GetGOPATHs()
if len(gps) == 0 {
beeLogger.Log.Fatal("GOPATH environment variable is not set or empty")
}
gopath := gps[0]
beeLogger.Log.Debugf("GOPATH: %s", utils.FILE(), utils.LINE(), gopath)
//gps := utils.GetGOPATHs()
//if len(gps) == 0 {
// beeLogger.Log.Fatal("GOPATH environment variable is not set or empty")
//}
//
//gopath := gps[0]
//
//beeLogger.Log.Debugf("GOPATH: %s", utils.FILE(), utils.LINE(), gopath)
gcmd := args[0]
switch gcmd {