Skip to content
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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Add grype db providers command #2174

wants to merge 9 commits into from

Commits on Oct 9, 2024

  1. feat: add grype db providers command

    - 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 <[email protected]>
    ADorigi committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    d651464 View commit details
    Browse the repository at this point in the history
  2. chore: update readme for grype db providers

    Signed-off-by: Adnan Gulegulzar <[email protected]>
    ADorigi committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    b674ee8 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. chore: update lint

    Signed-off-by: Adnan Gulegulzar <[email protected]>
    ADorigi committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    b39842a View commit details
    Browse the repository at this point in the history
  2. chore: add cli test for grype db providers

    Signed-off-by: Adnan Gulegulzar <[email protected]>
    ADorigi committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    5b0330f View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. Configuration menu
    Copy the full SHA
    fe652c5 View commit details
    Browse the repository at this point in the history
  2. fix: review 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 <[email protected]>
    ADorigi committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    018220b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f2dac42 View commit details
    Browse the repository at this point in the history
  4. chore: removes changes to db diff, db serach and db list commands

    Signed-off-by: Adnan Gulegulzar <[email protected]>
    ADorigi committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    7e7ba5e View commit details
    Browse the repository at this point in the history
  5. chore: remove unused constants

    Signed-off-by: Adnan Gulegulzar <[email protected]>
    ADorigi committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    d89a8c0 View commit details
    Browse the repository at this point in the history