mirror of
https://shylinux.com/x/icebergs
synced 2025-04-27 17:58:29 +08:00
opt some
This commit is contained in:
parent
09f5dfbc85
commit
a025334fd0
@ -102,7 +102,8 @@ field "{{.Option "name"}}" web.code.{{.Option "name"}}.{{.Option "name"}}
|
||||
m.Option(nfs.DIR_DEEP, true)
|
||||
m.Option(nfs.DIR_REG, ".*.go")
|
||||
m.Cmdy(nfs.DIR, "usr/icebergs/misc/", "path,size,time")
|
||||
m.Sort(kit.MDB_PATH)
|
||||
m.Cmdy(nfs.DIR, "src/", "path,size,time")
|
||||
m.SortTimeR(kit.MDB_PATH)
|
||||
}
|
||||
}},
|
||||
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||
|
@ -4,7 +4,6 @@ import (
|
||||
ice "github.com/shylinux/icebergs"
|
||||
"github.com/shylinux/icebergs/base/cli"
|
||||
"github.com/shylinux/icebergs/base/mdb"
|
||||
"github.com/shylinux/icebergs/base/web"
|
||||
"github.com/shylinux/icebergs/core/code"
|
||||
kit "github.com/shylinux/toolkits"
|
||||
|
||||
@ -44,8 +43,7 @@ func init() {
|
||||
m.Cmdy(cli.SYSTEM, "make")
|
||||
}},
|
||||
mdb.CREATE: {Name: "create main=src/main.go@key name=hi@key from=usr/icebergs/misc/bash/bash.go@key", Help: "模块", Hand: func(m *ice.Message, arg ...string) {
|
||||
m.Cmdy(web.SPACE, m.Option(web.ROUTE), "web.code.autogen", mdb.CREATE, arg)
|
||||
m.Option(ice.MSG_PROCESS, ice.PROCESS_INNER)
|
||||
m.Cmdy(code.AUTOGEN, mdb.CREATE, arg)
|
||||
}},
|
||||
mdb.INPUTS: {Name: "inputs", Help: "补全", Hand: func(m *ice.Message, arg ...string) {
|
||||
m.Cmdy(code.AUTOGEN, mdb.INPUTS, arg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user