Skip to content

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.

3 participants