mirror of
https://github.com/beego/bee.git
synced 2024-12-22 04:50:49 +00:00
commit
734d77f60d
@ -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() == `` {
|
||||
|
@ -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() == `` {
|
||||
|
@ -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() == `` {
|
||||
|
Loading…
Reference in New Issue
Block a user