forked from x/icebergs
add es.command
This commit is contained in:
parent
345a8f28c6
commit
ce43453626
@ -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) {
|
"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 {
|
if len(arg) == 0 {
|
||||||
m.Cmdy(cli.DAEMON)
|
m.Cmdy(cli.DAEMON)
|
||||||
|
@ -26,6 +26,8 @@ spark shell `
|
|||||||
$ curl http://localhost:9200
|
$ curl http://localhost:9200
|
||||||
`
|
`
|
||||||
|
|
||||||
|
field command web.code.es.command option `{ pod centos.remote }`
|
||||||
|
|
||||||
field document web.code.es.document
|
field document web.code.es.document
|
||||||
field es web.code.es.es
|
field es web.code.es.es
|
||||||
field install web.code.install
|
field install web.code.install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user