forked from x/ContextOS
tce fix bug
This commit is contained in:
parent
4fe29a255e
commit
46a3bbc8ef
@ -2045,12 +2045,11 @@ var Index = &Context{Name: "ctx", Help: "模块中心",
|
|||||||
return
|
return
|
||||||
case "list":
|
case "list":
|
||||||
for i := 0; i < m.Capi("part"); i++ {
|
for i := 0; i < m.Capi("part"); i++ {
|
||||||
|
|
||||||
if c, ok := m.target.Commands[fmt.Sprintf("%d", i)]; ok {
|
if c, ok := m.target.Commands[fmt.Sprintf("%d", i)]; ok {
|
||||||
m.Echo("%d: %s\n", i, c.Name)
|
m.Echo("%d: %s\n", i, c.Name)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
switch len(arg) {
|
switch len(arg) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user