1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 04:50:49 +00:00

Merge pull request #758 from higker/develop

fix generate case problem.
This commit is contained in:
Ming Deng 2020-12-28 20:47:39 +08:00 committed by GitHub
commit 734d77f60d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -575,14 +575,14 @@ func createAPI(cmd *commands.Command, args []string) int {
var packPath string
var err error
if gopath == `true` {
beeLogger.Log.Info("generate api project support GOPATH")
beeLogger.Log.Info("Generate api project support GOPATH")
version.ShowShortVersionBanner()
appPath, packPath, err = utils.CheckEnv(args[0])
if err != nil {
beeLogger.Log.Fatalf("%s", err)
}
} else {
beeLogger.Log.Info("generate api project support go modules.")
beeLogger.Log.Info("Generate api project support go modules.")
appPath = path.Join(utils.GetBeeWorkPath(), args[0])
packPath = args[0]
if beegoVersion.String() == `` {

View File

@ -82,14 +82,14 @@ func createhprose(cmd *commands.Command, args []string) int {
var packpath string
var err error
if gopath == `true` {
beeLogger.Log.Info("generate api project support GOPATH")
beeLogger.Log.Info("Generate api project support GOPATH")
version.ShowShortVersionBanner()
apppath, packpath, err = utils.CheckEnv(args[0])
if err != nil {
beeLogger.Log.Fatalf("%s", err)
}
} else {
beeLogger.Log.Info("generate api project support go modules.")
beeLogger.Log.Info("Generate api project support go modules.")
apppath = path.Join(utils.GetBeeWorkPath(), args[0])
packpath = args[0]
if beegoVersion.String() == `` {

View File

@ -279,14 +279,14 @@ func CreateApp(cmd *commands.Command, args []string) int {
var packPath string
var err error
if gopath == `true` {
beeLogger.Log.Info("generate new project support GOPATH")
beeLogger.Log.Info("Generate new project support GOPATH")
version.ShowShortVersionBanner()
appPath, packPath, err = utils.CheckEnv(args[0])
if err != nil {
beeLogger.Log.Fatalf("%s", err)
}
} else {
beeLogger.Log.Info("generate new project support go modules.")
beeLogger.Log.Info("Generate new project support go modules.")
appPath = path.Join(utils.GetBeeWorkPath(), args[0])
packPath = args[0]
if beegoVersion.String() == `` {