mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
commit
734d77f60d
@ -575,14 +575,14 @@ func createAPI(cmd *commands.Command, args []string) int {
|
|||||||
var packPath string
|
var packPath string
|
||||||
var err error
|
var err error
|
||||||
if gopath == `true` {
|
if gopath == `true` {
|
||||||
beeLogger.Log.Info("generate api project support GOPATH")
|
beeLogger.Log.Info("Generate api project support GOPATH")
|
||||||
version.ShowShortVersionBanner()
|
version.ShowShortVersionBanner()
|
||||||
appPath, packPath, err = utils.CheckEnv(args[0])
|
appPath, packPath, err = utils.CheckEnv(args[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
beeLogger.Log.Fatalf("%s", err)
|
beeLogger.Log.Fatalf("%s", err)
|
||||||
}
|
}
|
||||||
} else {
|
} 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])
|
appPath = path.Join(utils.GetBeeWorkPath(), args[0])
|
||||||
packPath = args[0]
|
packPath = args[0]
|
||||||
if beegoVersion.String() == `` {
|
if beegoVersion.String() == `` {
|
||||||
|
@ -82,14 +82,14 @@ func createhprose(cmd *commands.Command, args []string) int {
|
|||||||
var packpath string
|
var packpath string
|
||||||
var err error
|
var err error
|
||||||
if gopath == `true` {
|
if gopath == `true` {
|
||||||
beeLogger.Log.Info("generate api project support GOPATH")
|
beeLogger.Log.Info("Generate api project support GOPATH")
|
||||||
version.ShowShortVersionBanner()
|
version.ShowShortVersionBanner()
|
||||||
apppath, packpath, err = utils.CheckEnv(args[0])
|
apppath, packpath, err = utils.CheckEnv(args[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
beeLogger.Log.Fatalf("%s", err)
|
beeLogger.Log.Fatalf("%s", err)
|
||||||
}
|
}
|
||||||
} else {
|
} 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])
|
apppath = path.Join(utils.GetBeeWorkPath(), args[0])
|
||||||
packpath = args[0]
|
packpath = args[0]
|
||||||
if beegoVersion.String() == `` {
|
if beegoVersion.String() == `` {
|
||||||
|
@ -279,14 +279,14 @@ func CreateApp(cmd *commands.Command, args []string) int {
|
|||||||
var packPath string
|
var packPath string
|
||||||
var err error
|
var err error
|
||||||
if gopath == `true` {
|
if gopath == `true` {
|
||||||
beeLogger.Log.Info("generate new project support GOPATH")
|
beeLogger.Log.Info("Generate new project support GOPATH")
|
||||||
version.ShowShortVersionBanner()
|
version.ShowShortVersionBanner()
|
||||||
appPath, packPath, err = utils.CheckEnv(args[0])
|
appPath, packPath, err = utils.CheckEnv(args[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
beeLogger.Log.Fatalf("%s", err)
|
beeLogger.Log.Fatalf("%s", err)
|
||||||
}
|
}
|
||||||
} else {
|
} 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])
|
appPath = path.Join(utils.GetBeeWorkPath(), args[0])
|
||||||
packPath = args[0]
|
packPath = args[0]
|
||||||
if beegoVersion.String() == `` {
|
if beegoVersion.String() == `` {
|
||||||
|
Loading…
Reference in New Issue
Block a user