forked from x/icebergs
opt some
This commit is contained in:
parent
49b2580fbc
commit
d83c1f67ed
@ -43,6 +43,7 @@ func init() {
|
|||||||
web.RenderWebsite(m, arg[0], path.Join(arg[2:]...)) // 节点网页
|
web.RenderWebsite(m, arg[0], path.Join(arg[2:]...)) // 节点网页
|
||||||
|
|
||||||
} else if arg[1] == CMD {
|
} else if arg[1] == CMD {
|
||||||
|
m.Option(ice.POD, "")
|
||||||
m.Cmdy(web.SPACE, arg[0], m.Prefix(CMD), path.Join(arg[2:]...)) // 节点命令
|
m.Cmdy(web.SPACE, arg[0], m.Prefix(CMD), path.Join(arg[2:]...)) // 节点命令
|
||||||
} else {
|
} else {
|
||||||
m.Cmdy(web.SPACE, m.Option(ice.MSG_USERPOD), "web.chat."+strings.TrimPrefix(path.Join(arg[1:]...), "chat/"))
|
m.Cmdy(web.SPACE, m.Option(ice.MSG_USERPOD), "web.chat."+strings.TrimPrefix(path.Join(arg[1:]...), "chat/"))
|
||||||
|
@ -74,7 +74,7 @@ func init() {
|
|||||||
}},
|
}},
|
||||||
|
|
||||||
mdb.INPUTS: {Name: "inputs", Help: "补全", Hand: func(m *ice.Message, arg ...string) {
|
mdb.INPUTS: {Name: "inputs", Help: "补全", Hand: func(m *ice.Message, arg ...string) {
|
||||||
for _, p := range []string{"src/", "src/help/", "usr/icebergs/"} {
|
for _, p := range []string{"src/", "src/help/", "usr/icebergs/", "usr/linux-story/", "usr/nginx-story/", "usr/golang-story/", "usr/redis-story/", "usr/mysql-story/"} {
|
||||||
m.Cmdy(nfs.DIR, p, kit.Dict(nfs.DIR_DEEP, ice.TRUE, nfs.DIR_REG, ".*\\.shy"), nfs.DIR_CLI_FIELDS)
|
m.Cmdy(nfs.DIR, p, kit.Dict(nfs.DIR_DEEP, ice.TRUE, nfs.DIR_REG, ".*\\.shy"), nfs.DIR_CLI_FIELDS)
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user