Open willmurphyscode opened 3 months ago
I think what we plan to do here is demote the output
of grype db list
to be under db, so you'd have like:
db:
list-output: json
...
or something. It's important that the behavior of the top level output
key remain unchanged. In other words, break the config relative to the minor commands db list
and not the main command.
What happened:
If
output: [json]
(or any other list, including an empty list) is present in the config file,grype db list
fails with an error.What you expected to happen:
Not to fail with an error.
How to reproduce it (as minimally and precisely as possible):
You'll see that
grype alpine:latest
works correctly and prints JSON to stdout, butgrype db list
fails in the following way:Anything else we need to know?:
Environment:
grype version
:cat /etc/os-release
or similar): M1 macbook