1
0
forked from x/icebergs
icebergs/core/code/code.go
shylinux@163.com a91766548a opt code
2022-09-22 16:08:43 +08:00

31 lines
799 B
Go

package code
import (
ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/ctx"
"shylinux.com/x/icebergs/base/mdb"
"shylinux.com/x/icebergs/base/web"
kit "shylinux.com/x/toolkits"
)
const CODE = "code"
var Index = &ice.Context{Name: CODE, Help: "编程中心", Commands: ice.Commands{
ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) {
m.Conf(TEMPLATE, kit.Keym(mdb.SHORT), mdb.TYPE)
m.Conf(COMPLETE, kit.Keym(mdb.SHORT), mdb.TYPE)
m.Conf(NAVIGATE, kit.Keym(mdb.SHORT), mdb.TYPE)
ctx.Load(m)
}},
}}
func init() {
web.Index.Register(Index, &web.Frame{},
INSTALL, WEBPACK, BINPACK, AUTOGEN, COMPILE, PUBLISH, UPGRADE,
FAVOR, XTERM, INNER, VIMER, BENCH, PPROF,
C, SH, SHY, GO, JS,
)
}
func Prefix(arg ...string) string { return kit.Keys(web.WEB, CODE, arg) }