forked from x/icebergs
opt some
This commit is contained in:
parent
d0776d298f
commit
d2bbb9a335
@ -10,6 +10,7 @@ import (
|
|||||||
ice "shylinux.com/x/icebergs"
|
ice "shylinux.com/x/icebergs"
|
||||||
"shylinux.com/x/icebergs/base/aaa"
|
"shylinux.com/x/icebergs/base/aaa"
|
||||||
"shylinux.com/x/icebergs/base/cli"
|
"shylinux.com/x/icebergs/base/cli"
|
||||||
|
"shylinux.com/x/icebergs/base/ctx"
|
||||||
"shylinux.com/x/icebergs/base/mdb"
|
"shylinux.com/x/icebergs/base/mdb"
|
||||||
"shylinux.com/x/icebergs/base/tcp"
|
"shylinux.com/x/icebergs/base/tcp"
|
||||||
kit "shylinux.com/x/toolkits"
|
kit "shylinux.com/x/toolkits"
|
||||||
@ -296,5 +297,11 @@ func init() {
|
|||||||
"/require/": {Name: "/require/", Help: "公有云", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
"/require/": {Name: "/require/", Help: "公有云", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
_share_repos(m, path.Join(arg[0], arg[1], arg[2]), arg[3:]...)
|
_share_repos(m, path.Join(arg[0], arg[1], arg[2]), arg[3:]...)
|
||||||
}},
|
}},
|
||||||
|
"/help/": {Name: "/help/", Help: "帮助", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
|
if len(arg) > 0 && arg[0] != ctx.ACTION {
|
||||||
|
arg[0] = "src/help/" + arg[0]
|
||||||
|
}
|
||||||
|
m.Cmdy("web.chat./cmd/", arg)
|
||||||
|
}},
|
||||||
}})
|
}})
|
||||||
}
|
}
|
||||||
|
@ -149,7 +149,9 @@ const ACTION = "action"
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
Index.Merge(&ice.Context{Configs: map[string]*ice.Config{
|
Index.Merge(&ice.Context{Configs: map[string]*ice.Config{
|
||||||
ACTION: {Name: ACTION, Help: "应用", Value: kit.Data(DOMAIN, kit.Dict())},
|
ACTION: {Name: ACTION, Help: "应用", Value: kit.Data(
|
||||||
|
MENUS, `[["help", "tutor", "manual", "service", "devops", "refer"]]`,
|
||||||
|
)},
|
||||||
}, Commands: map[string]*ice.Command{
|
}, Commands: map[string]*ice.Command{
|
||||||
ice.CTX_INIT: {Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
ice.CTX_INIT: {Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
for _, cmd := range []string{
|
for _, cmd := range []string{
|
||||||
|
@ -3,6 +3,7 @@ refer `
|
|||||||
官网 https://git-scm.com/
|
官网 https://git-scm.com/
|
||||||
文档 https://git-scm.com/docs
|
文档 https://git-scm.com/docs
|
||||||
源码 https://github.com/git/git
|
源码 https://github.com/git/git
|
||||||
|
私服 https://github.com/go-gitea/gitea
|
||||||
`
|
`
|
||||||
|
|
||||||
chapter "源码"
|
chapter "源码"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user