Add `grype db list-namespaces` for users to determine the available distros to use
- Dominant language
- Go
- Stars
- 12.9k
- Forks
- 880
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 25
Description
With the addition of the `--distro` flag, it would be nice if a user could know exactly what values they should be using for this without having to somehow inspect the database, so we should add a command to list these, and consider updating the warning when no distro is found to tell them this command. Maybe something like:
```
grype db list-namespaces
```
Contributor guide
Research direction
Start at the existing `grype db` command and the `--distro` handling to trace how database namespaces are read. Add the `grype db list-namespaces` entry point so users can see valid distro values, and consider updating the no-distro warning to reference it. Done means the command lists the available namespaces and the warning guides users appropriately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100