diff --git a/core/code/compile.go b/core/code/compile.go index cc8430e6..8975d6fc 100644 --- a/core/code/compile.go +++ b/core/code/compile.go @@ -44,13 +44,13 @@ func init() { COMPILE: {Value: kit.Data(cli.ENV, kit.Dict("GOPRIVATE", "shylinux.com,github.com", "GOPROXY", "https://goproxy.cn,direct", "CGO_ENABLED", "0"))}, }, Commands: ice.Commands{ COMPILE: {Name: "compile arch=amd64,386,mipsle,arm,arm64 os=linux,darwin,windows src=src/main.go@key run binpack relay", Help: "编译", Actions: ice.Actions{ - mdb.INPUTS: {Name: "inputs", Help: "补全", Hand: func(m *ice.Message, arg ...string) { + mdb.INPUTS: {Hand: func(m *ice.Message, arg ...string) { m.Cmdy(nfs.DIR, ice.SRC, nfs.DIR_CLI_FIELDS, kit.Dict(nfs.DIR_REG, `.*\.go$`)).Sort(nfs.PATH) }}, - BINPACK: {Name: "binpack", Help: "打包", Hand: func(m *ice.Message, arg ...string) { + BINPACK: {Help: "打包", Hand: func(m *ice.Message, arg ...string) { m.Cmdy(AUTOGEN, BINPACK) }}, - RELAY: {Name: "relay", Help: "跳板", Hand: func(m *ice.Message, arg ...string) { + RELAY: {Help: "跳板", Hand: func(m *ice.Message, arg ...string) { m.Cmdy(COMPILE, ice.SRC_RELAY_GO, path.Join(ice.USR_PUBLISH, RELAY)) }}, }, Hand: func(m *ice.Message, arg ...string) { diff --git a/core/code/vimer.go b/core/code/vimer.go index 092678b1..d67094d1 100644 --- a/core/code/vimer.go +++ b/core/code/vimer.go @@ -66,9 +66,6 @@ func init() { m.Cmd(ctx.COMMAND, mdb.SEARCH, ctx.COMMAND, ice.OptionFields(ctx.INDEX)).Tables(func(value ice.Maps) { m.Push(nfs.PATH, "index:"+value[ctx.INDEX]) }) - m.Cmd(web.DREAM, ice.Map{nfs.DIR_TYPE: "", nfs.DIR_DEEP: "", nfs.DIR_ROOT: ""}).Tables(func(value ice.Maps) { - m.Push(nfs.PATH, "dream:"+value[mdb.NAME]) - }) m.Cmd(FAVOR, "_system_app").Tables(func(value ice.Maps) { m.Push(nfs.PATH, "_open:"+strings.ToLower(value[mdb.NAME])) }) diff --git a/core/mall/goods.go b/core/mall/goods.go new file mode 100644 index 00000000..3c77853d --- /dev/null +++ b/core/mall/goods.go @@ -0,0 +1,19 @@ +package mall + +import ( + ice "shylinux.com/x/icebergs" + "shylinux.com/x/icebergs/base/mdb" +) +const GOODS = "goods" + +func init() { + Index.MergeCommands(ice.Commands{ + GOODS: {Name: "goods hash auto", Help: "商品", Actions: ice.MergeActions(ice.Actions{ + + }, mdb.HashAction(mdb.FIELD, "time,hash,type,name,text")), Hand: func(m *ice.Message, arg ...string) { + if mdb.HashSelect(m, arg...); len(arg) == 0 || arg[0] == "" { + m.Action(mdb.CREATE) + } + }}, + }) +} \ No newline at end of file diff --git a/misc/git/status.go b/misc/git/status.go index 9189b0c1..69c946db 100644 --- a/misc/git/status.go +++ b/misc/git/status.go @@ -235,6 +235,8 @@ func init() { _status_each(m, PULL, cli.SYSTEM, GIT, PULL) }}, code.COMPILE: {Name: "compile", Help: "编译", Hand: func(m *ice.Message, arg ...string) { + web.ToastProcess(m) + defer web.ToastSuccess(m) m.Cmdy(code.VIMER, code.COMPILE) }}, PUSH: {Name: "push", Help: "上传", Hand: func(m *ice.Message, arg ...string) {