forked from x/ContextOS
tce add
This commit is contained in:
parent
f2294a5b67
commit
c9654729de
@ -222,11 +222,14 @@ var Index = &ctx.Context{Name: "mdb", Help: "数据中心",
|
|||||||
msg.Table(func(maps map[string]string, lists []string, index int) bool {
|
msg.Table(func(maps map[string]string, lists []string, index int) bool {
|
||||||
for i, v := range lists {
|
for i, v := range lists {
|
||||||
if m.Options("save") {
|
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 {
|
} 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 {
|
} 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")
|
m.Echo("\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user