Skip to content

Add ability to list plugins from CLI #2798

@dosisod

Description

@dosisod

Currently there is no CLI flag/command to view supported plugins, nor whether a plugin is enabled by default. This leads to confusion such as google/osv-scalibr#618 (comment), in which I saw .csproj file detection was supported, but only if you explicitly enable it.

Perhaps a plugin command could solve this? For example:

$ osv-scanner plugin ls
javascript/packagejson (enabled)
dotnet/csproj (disabled)

Or, if --experimental-plugins is used without a value, it could list the available plugins:

$ osv-scanner --experimental-plugins
Available plugins:
...

$ osv-scanner --experimental-no-default-plugins --experimental-plugins
No plugins available

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions