forked from x/icebergs
opt action.js
This commit is contained in:
parent
bff34f7c23
commit
22d1dfe714
@ -214,7 +214,6 @@ var Index = &ice.Context{Name: MDB, Help: "数据模块", Commands: map[string]*
|
||||
case HASH:
|
||||
_hash_import(m, arg[0], _domain_chain(m, arg[1]), file)
|
||||
case LIST:
|
||||
m.Debug("what %v /// %v", arg, file)
|
||||
_list_import(m, arg[0], _domain_chain(m, arg[1]), file)
|
||||
}
|
||||
}},
|
||||
|
@ -19,7 +19,7 @@ func init() {
|
||||
msg := m.Spawn(c)
|
||||
if len(arg) > 1 {
|
||||
msg.OptionCB(SELECT, func(fields []string, value map[string]interface{}) {
|
||||
m.OptionFields(kit.Select("ctx,cmd,type,name,text", kit.Select(m.OptionFields(), arg, 2)))
|
||||
m.OptionFields(kit.Select("ctx,cmd,type,name,text", kit.Select(m.OptionFields())))
|
||||
m.Cmdy(kit.Keys(value[TEXT], value[NAME]), m.CommandKey(), arg[0], arg[1], kit.Select("", arg, 2))
|
||||
})
|
||||
}
|
||||
|
@ -81,7 +81,8 @@ func _action_share(m *ice.Message, arg ...string) {
|
||||
break // 分享超时
|
||||
}
|
||||
if arg[0] = msg.Append(mdb.NAME); len(arg) == 1 {
|
||||
m.Push("title", msg.Append("title"))
|
||||
m.Push(TITLE, msg.Append(TITLE))
|
||||
m.Push(TOPIC, msg.Append(TOPIC))
|
||||
m.Push(ctx.INDEX, msg.Append(mdb.NAME))
|
||||
m.Push(ctx.ARGS, msg.Append(mdb.TEXT))
|
||||
break // 命令列表
|
||||
|
@ -117,8 +117,8 @@ func init() {
|
||||
}
|
||||
_go_tags(m, kit.Select(MAIN, arg, 1))
|
||||
_go_help(m, kit.Select(MAIN, arg, 1))
|
||||
_go_find(m, kit.Select(MAIN, arg, 1))
|
||||
_go_grep(m, kit.Select(MAIN, arg, 1))
|
||||
// _go_find(m, kit.Select(MAIN, arg, 1))
|
||||
// _go_grep(m, kit.Select(MAIN, arg, 1))
|
||||
}},
|
||||
}, PlugAction())},
|
||||
}, Configs: map[string]*ice.Config{
|
||||
|
@ -81,6 +81,11 @@ func init() {
|
||||
}
|
||||
m.Set(ice.MSG_STATUS)
|
||||
}},
|
||||
mdb.SEARCH: {Name: "search", Help: "搜索", Hand: func(m *ice.Message, arg ...string) {
|
||||
m.Option(cli.CMD_DIR, kit.Path(arg[2]))
|
||||
m.Option(nfs.DIR_ROOT, arg[2])
|
||||
m.Cmdy(mdb.SEARCH, arg[0], arg[1], arg[2])
|
||||
}},
|
||||
mdb.ENGINE: {Name: "engine", Help: "引擎", Hand: func(m *ice.Message, arg ...string) {
|
||||
_inner_exec(m, arg[0], arg[1], arg[2])
|
||||
}},
|
||||
|
Loading…
x
Reference in New Issue
Block a user