From 1a4add15bbefec86972f52c495ac30e98068afda Mon Sep 17 00:00:00 2001 From: shy Date: Thu, 5 Oct 2023 13:03:40 +0800 Subject: [PATCH] add some --- core/code/publish.go | 4 +++- core/code/webpack.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/code/publish.go b/core/code/publish.go index 3bac4bc5..84219dbc 100644 --- a/core/code/publish.go +++ b/core/code/publish.go @@ -65,10 +65,12 @@ func _publish_contexts(m *ice.Message, arg ...string) { const PUBLISH = "publish" func init() { - Index.MergeCommands(ice.Commands{ + web.Index.MergeCommands(ice.Commands{ web.PP(ice.PUBLISH): {Actions: aaa.WhiteAction(), Hand: func(m *ice.Message, arg ...string) { web.ShareLocalFile(m, ice.USR_PUBLISH, path.Join(arg...)) }}, + }) + Index.MergeCommands(ice.Commands{ PUBLISH: {Name: "publish path auto create volcanos icebergs intshell", Help: "发布", Actions: ice.MergeActions(ice.Actions{ ice.VOLCANOS: {Help: "火山架", Hand: func(m *ice.Message, arg ...string) { _publish_list(m, kit.ExtReg(HTML, CSS, JS)) }}, ice.ICEBERGS: {Help: "冰山架", Hand: func(m *ice.Message, arg ...string) { _publish_bin_list(m).Cmdy("", ice.CONTEXTS) }}, diff --git a/core/code/webpack.go b/core/code/webpack.go index 50962bd1..59bef5cd 100644 --- a/core/code/webpack.go +++ b/core/code/webpack.go @@ -125,7 +125,7 @@ const WEBPACK = "webpack" func init() { Index.MergeCommands(ice.Commands{ WEBPACK: {Name: "webpack path auto create remove", Help: "打包", Actions: ice.MergeActions(ice.Actions{ - mdb.CREATE: {Hand: func(m *ice.Message, arg ...string) { + mdb.CREATE: {Name: "create path", Hand: func(m *ice.Message, arg ...string) { _webpack_cache(m.Spawn(), _volcanos(m), true) // _webpack_can(m) m.Cmdy("")