-
Notifications
You must be signed in to change notification settings - Fork 585
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
Add grype db providers
command
#2174
Conversation
- currently reads content of `provider-metadata.json` file - added flag `-o`/`--output` flags which accept `json` and `table` - update method `getDBProviders()` and type `dbProviderMetadata` for db schema `v6` Signed-off-by: Adnan Gulegulzar <gulegulzaradnan@gmail.com>
Signed-off-by: Adnan Gulegulzar <gulegulzaradnan@gmail.com>
Hi @ADorigi thanks for the quick work here! We need a couple things before we can merge it.
Let me know if you have any questions! Thanks! |
Signed-off-by: Adnan Gulegulzar <gulegulzaradnan@gmail.com>
Signed-off-by: Adnan Gulegulzar <gulegulzaradnan@gmail.com>
@willmurphyscode
|
Hi @ADorigi! Thanks for getting up a rev that passes the validations. I have being trying out the command locally, and I have some additional feedback. There are some things that need to change in order to merge this, and some things that are merely nice to have, listed separately here: Things that need to change
Nice to have changes:
|
- updated table as the default output format - updated tablewriter settings - added unit test for the components of db providers command - added dummy "provider-metadata.json" to aid unit tests - added table and json assertion to cli test Signed-off-by: Adnan Gulegulzar <gulegulzaradnan@gmail.com>
58066f4
to
902e9a7
Compare
Hello @willmurphyscode I have made the following changes:
|
Signed-off-by: Adnan Gulegulzar <gulegulzaradnan@gmail.com>
Signed-off-by: Adnan Gulegulzar <gulegulzaradnan@gmail.com>
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
Issue
resolves #2131
Changes
provider-metadata.json
file.-o
/--output
flags which acceptjson
andtable
.v6
.provider-metadata.json
file.Readme.md
for the new command.