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

upgrade version to 2

This commit is contained in:
Ming Deng
2020-12-16 13:20:41 +08:00
parent ebb2fee3fc
commit 06e09b0f87
59 changed files with 202 additions and 191 deletions

View File

@ -3,10 +3,10 @@ package beefix
import (
"strings"
"github.com/beego/bee/cmd/commands"
"github.com/beego/bee/cmd/commands/version"
beeLogger "github.com/beego/bee/logger"
"github.com/beego/bee/utils"
"github.com/beego/bee/v2/cmd/commands"
"github.com/beego/bee/v2/cmd/commands/version"
beeLogger "github.com/beego/bee/v2/logger"
"github.com/beego/bee/v2/utils"
)
var CmdFix = &commands.Command{
@ -36,7 +36,7 @@ func init() {
func runFix(cmd *commands.Command, args []string) int {
t := target.String()
if t == "" || t == "1.6"{
if t == "" || t == "1.6" {
return fixTo16(cmd, args)
} else if strings.HasPrefix(t, "2") {
// upgrade to v2