1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shaoying 2018-06-25 22:51:33 +08:00
parent f2294a5b67
commit c9654729de

View File

@ -222,11 +222,14 @@ var Index = &ctx.Context{Name: "mdb", Help: "数据中心",
msg.Table(func(maps map[string]string, lists []string, index int) bool {
for i, v := range lists {
if m.Options("save") {
m.Echo(maps[msg.Meta["append"][i]]).Echo(m.Conf("csv_sep"))
m.Echo(maps[msg.Meta["append"][i]])
} else if index == -1 {
m.Echo("\033[32m%s\033[0m", v).Echo(m.Conf("csv_sep"))
m.Echo("\033[32m%s\033[0m", v)
} else {
m.Echo(v).Echo(m.Conf("csv_sep"))
m.Echo(v)
}
if i < len(lists)-1 {
m.Echo(m.Conf("csv_sep"))
}
}
m.Echo("\n")