html-query icon indicating copy to clipboard operation
html-query copied to clipboard

Feature request: REPL

Open grimnight opened this issue 2 years ago • 3 comments

Instead of using cat page.html | hq '{something: .something}' repeatedly until it works, it might be better to use something like cat page.html | hq --repl to get a prompt:

> {something: .something}
{
  "something": "something"
}

for quick development, this could also help with #33 . There could also be SQLite style .help or Postgres style \? commands.

Would this make sense for hq?

grimnight avatar Apr 06 '23 00:04 grimnight

I love this idea, I’ll have a go at adding it

orf avatar Apr 07 '23 02:04 orf

Rather than bundle a REPL directly into the tool I decided to try and create a WASM playground for hq. It's published here: https://orf.github.io/hq/

I'll be expanding and making it better later on, but let me know what you think

orf avatar Apr 14 '23 14:04 orf