Skip to content

search: allow returning output in JSON format#259

Merged
NotAShelf merged 3 commits intomasterfrom
search-json
Apr 26, 2025
Merged

search: allow returning output in JSON format#259
NotAShelf merged 3 commits intomasterfrom
search-json

Conversation

@NotAShelf
Copy link
Copy Markdown
Member

Passing --json, or defining NH_SEARCH_JSON, will now output search results in the JSON format.

@viperML
Copy link
Copy Markdown
Contributor

viperML commented Apr 26, 2025

TBH I dont feel we need an env var, just --json is enough.

@NotAShelf
Copy link
Copy Markdown
Member Author

I think the env var is enabled in headless contexts, or just for having it always omit JSON. Doesn't really cost us anything, so I'm in favor of having it.

@NotAShelf NotAShelf merged commit 7c91389 into master Apr 26, 2025
4 checks passed
@github-actions github-actions bot deleted the search-json branch June 1, 2025 04:32
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

Successfully merging this pull request may close these issues.

2 participants