1
0
forked from x/icebergs

add es.command

This commit is contained in:
shylinux 2020-08-13 23:11:58 +08:00
parent 345a8f28c6
commit ce43453626
2 changed files with 7 additions and 0 deletions

View File

@ -66,6 +66,11 @@ var Index = &ice.Context{Name: ES, Help: "搜索",
}
}},
"command": {Name: "command 执行:button method:select=GET|PUT|POST|DELETE cmd data:textarea", Help: "命令", Action: map[string]*ice.Action{}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
m.Option("header", "Content-Type", "application/json")
m.Echo(kit.Formats(kit.UnMarshal(m.Cmdx("web.spide", "dev", "raw", arg[0], "http://localhost:9200/"+arg[1], "data", arg[2]))))
}},
"index": {Name: "table index 创建:button", Help: "索引", Action: map[string]*ice.Action{}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
if len(arg) == 0 {
m.Cmdy(cli.DAEMON)

View File

@ -26,6 +26,8 @@ spark shell `
$ curl http://localhost:9200
`
field command web.code.es.command option `{ pod centos.remote }`
field document web.code.es.document
field es web.code.es.es
field install web.code.install