Right now, the offline mode falls back to the builtin advisory DB. However, there are two use cases where the user might want to reference their own DB separately from either the GitHub or builtin DB:
- Internally-maintained DB that may be supplemented with confidential information or used in an environment with restricted network access
- Testing proposed changes to the public advisory DB
This might be best implemented by treating the user-provided DB as supplemental and adding an option like --additional-db <LOCATION>. In the ideal case, it could be either an HTTPS URL or a filesystem path, although if that gets too complicated, I think a filesystem path is sufficient. The other option would be to ignore both of the GitHub and builtin DBs when a user supplies a DB location. In that case, it might be better to make it an optional argument to --offline (or have --offline builtin be a special case that uses the builtin DB before looking on the filesystem)
Right now, the offline mode falls back to the builtin advisory DB. However, there are two use cases where the user might want to reference their own DB separately from either the GitHub or builtin DB:
This might be best implemented by treating the user-provided DB as supplemental and adding an option like
--additional-db <LOCATION>. In the ideal case, it could be either an HTTPS URL or a filesystem path, although if that gets too complicated, I think a filesystem path is sufficient. The other option would be to ignore both of the GitHub and builtin DBs when a user supplies a DB location. In that case, it might be better to make it an optional argument to--offline(or have--offline builtinbe a special case that uses the builtin DB before looking on the filesystem)