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:
@ -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
|
||||
|
Reference in New Issue
Block a user