elastic / sense

A JSON aware developer's interface to Elasticsearch. Comes with handy machinery such as syntax highlighting, autocomplete, formatting and code folding.
Other
381 stars 134 forks source link

Sense via command line #118

Closed thesmart closed 8 years ago

thesmart commented 8 years ago

It would be great to be able to run ElasticSearch requests written in Sense's syntax, but from the command line using standard input. Is there already a binary for this? Would others find this useful?

spalger commented 8 years ago

That is currently what the "copy as curl" functionality is defined to allow. The fact that you can then paste the curl commands back into sense and it will parse the curl into sense syntax sort-of helps this workflow.

thesmart commented 8 years ago

Oh cool, I didn't realize that. Another nice-to-have would be a "copy all as curl".

clintongormley commented 8 years ago

@thesmart it does have it. just highlight all the commands you want to copy-as-curl