+
Skip to content

Always show results with json output for db search commands #2692

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

Merged
merged 1 commit into from
May 29, 2025

Conversation

wagoodman
Copy link
Contributor

Today if you use db search [vuln] ID -o json and the ID yields no results, then you will see:

No results found

However, the correct output should be an empty array:

[]

This PR fixes this behavior.

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman added the bug Something isn't working label May 29, 2025
@wagoodman wagoodman changed the title Always show results with json output Always show results with json output for db search commands May 29, 2025
@wagoodman wagoodman enabled auto-merge (squash) May 29, 2025 15:22
@wagoodman wagoodman merged commit 5665f86 into main May 29, 2025
12 checks passed
@wagoodman wagoodman deleted the empty-output-json branch May 29, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载