1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-25 17:18:05 +08:00
This commit is contained in:
shaoying 2021-02-26 15:52:50 +08:00
parent 03d6114b35
commit ed0f24425d
2 changed files with 2 additions and 11 deletions

View File

@ -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))
}},
},
})

View File

@ -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))
}},