mirror of
https://github.com/beego/bee.git
synced 2025-06-11 03:10:40 +00:00
fix generate case problem.
This commit is contained in:
@ -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() == `` {
|
||||
|
Reference in New Issue
Block a user