Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: REPL #47

Open
grimnight opened this issue Apr 6, 2023 · 2 comments
Open

Feature request: REPL #47

grimnight opened this issue Apr 6, 2023 · 2 comments

Comments

@grimnight
Copy link

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?

@orf
Copy link
Owner

orf commented Apr 7, 2023

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

@orf
Copy link
Owner

orf commented Apr 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants