From ed0f24425ddeb5d1a37a19faac7d1418a737b80d Mon Sep 17 00:00:00 2001 From: shaoying Date: Fri, 26 Feb 2021 15:52:50 +0800 Subject: [PATCH] opt some --- base/ssh/scripts.go | 11 +---------- core/code/publish.go | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/base/ssh/scripts.go b/base/ssh/scripts.go index b0d0b4bd..12458529 100644 --- a/base/ssh/scripts.go +++ b/base/ssh/scripts.go @@ -14,7 +14,6 @@ import ( "io" "os" "path" - "reflect" "strings" "time" ) @@ -391,15 +390,7 @@ func init() { }}, "hi": {Name: "hi", Help: "hi", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { - cb := func() { - - } - - t := reflect.TypeOf(cb) - v := reflect.ValueOf(cb) - m.Echo("what %#v", t.Kind()) - m.Echo("what %#v", t) - m.Echo("what %v", v) + m.Echo("what %v", kit.FileLine(1, 100)) }}, }, }) diff --git a/core/code/publish.go b/core/code/publish.go index e4a4a77b..2a632005 100644 --- a/core/code/publish.go +++ b/core/code/publish.go @@ -58,7 +58,7 @@ echo "hello world" )}, }, Commands: map[string]*ice.Command{ - PUBLISH: {Name: "publish path auto create dream volcanos icebergs intshell", Help: "发布", Action: map[string]*ice.Action{ + PUBLISH: {Name: "publish path auto dream volcanos icebergs intshell", Help: "发布", Action: map[string]*ice.Action{ mdb.CREATE: {Name: "create file", Help: "添加", Hand: func(m *ice.Message, arg ...string) { _publish_file(m, m.Option(kit.MDB_FILE)) }},