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: Implement echo with no query #144

Open
miketheman opened this issue Oct 11, 2024 · 0 comments
Open

Feature: Implement echo with no query #144

miketheman opened this issue Oct 11, 2024 · 0 comments

Comments

@miketheman
Copy link

When not passing anything to hq, it should echo back the HTML it received, potentially even with some formatting, a la jq, instead of current behavior which is to error.

$ curl -s https://example.com | hq
error: the following required arguments were not provided:
  <QUERY>

Usage: hq <QUERY> [INPUT_FILE]

For more information, try '--help'.

It'd be fine to also implement jq . as hq {} or such - as a way to verify that the HTML itself is parseable, prior to trying to apply a query.

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

1 participant