1
0
forked from x/icebergs
This commit is contained in:
shylinux 2021-10-14 04:15:11 +08:00
parent bdd36c292d
commit c7551a6dbd

View File

@ -306,7 +306,7 @@ func (m *Message) Starts(name string, help string, arg ...string) *Message {
return m
}
func (m *Message) Travel(cb interface{}) *Message {
list := []*Context{m.target}
list := []*Context{m.root.target}
for i := 0; i < len(list); i++ {
switch cb := cb.(type) {
case func(*Context, *Context):