mirror of
https://shylinux.com/x/icebergs
synced 2025-04-25 17:18:05 +08:00
opt some
This commit is contained in:
parent
03d6114b35
commit
ed0f24425d
@ -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))
|
||||
}},
|
||||
},
|
||||
})
|
||||
|
@ -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))
|
||||
}},
|
||||
|
Loading…
x
Reference in New Issue
Block a user