[optimize] engine load & start cmd
This commit is contained in:
parent
bb02dcbf2a
commit
1484c0d8c7
2 changed files with 11 additions and 1 deletions
|
|
@ -320,7 +320,12 @@ func printApis(silent bool) {
|
|||
continue
|
||||
}
|
||||
|
||||
fmt.Printf(color.CyanString("\n%s(%d)\n", api.Name, len(api.HTTP.Paths)))
|
||||
deprecated := ""
|
||||
if strings.HasPrefix(api.Name, "xiang.") {
|
||||
deprecated = " WILL BE DEPRECATED"
|
||||
}
|
||||
|
||||
fmt.Printf("%s%s\n", color.CyanString("\n%s(%d)", api.Name, len(api.HTTP.Paths)), color.RedString(deprecated))
|
||||
for _, p := range api.HTTP.Paths {
|
||||
fmt.Println(
|
||||
colorMehtod(p.Method),
|
||||
|
|
|
|||
|
|
@ -156,6 +156,11 @@ func Load(cfg config.Config) (err error) {
|
|||
}
|
||||
|
||||
delete(gou.APIs, "xiang.table")
|
||||
delete(gou.APIs, "xiang.page")
|
||||
delete(gou.APIs, "xiang.chart")
|
||||
delete(gou.APIs, "xiang.xiang")
|
||||
delete(gou.APIs, "xiang.user")
|
||||
delete(gou.APIs, "xiang.storage")
|
||||
|
||||
} else { // old version
|
||||
err = table.Load(cfg) // 加载数据表格 table
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue