mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
移除过时命令
This commit is contained in:
parent
a99b434cec
commit
cf043c25a3
@ -21,7 +21,6 @@ import (
|
|||||||
"github.com/astaxie/beego/orm"
|
"github.com/astaxie/beego/orm"
|
||||||
"github.com/lifei6671/gocaptcha"
|
"github.com/lifei6671/gocaptcha"
|
||||||
"github.com/lifei6671/mindoc/cache"
|
"github.com/lifei6671/mindoc/cache"
|
||||||
"github.com/lifei6671/mindoc/commands/migrate"
|
|
||||||
"github.com/lifei6671/mindoc/conf"
|
"github.com/lifei6671/mindoc/conf"
|
||||||
"github.com/lifei6671/mindoc/models"
|
"github.com/lifei6671/mindoc/models"
|
||||||
"github.com/lifei6671/mindoc/utils/filetil"
|
"github.com/lifei6671/mindoc/utils/filetil"
|
||||||
@ -133,10 +132,8 @@ func RegisterCommand() {
|
|||||||
} else if len(os.Args) >= 2 && os.Args[1] == "version" {
|
} else if len(os.Args) >= 2 && os.Args[1] == "version" {
|
||||||
CheckUpdate()
|
CheckUpdate()
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
} else if len(os.Args) >= 2 && os.Args[1] == "migrate" {
|
|
||||||
ResolveCommand(os.Args[2:])
|
|
||||||
migrate.RunMigration()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//注册模板函数
|
//注册模板函数
|
||||||
|
Loading…
Reference in New Issue
Block a user