Skip to content

feat: introduce top-level plugins list command for active scalibr plugins#2809

Closed
techleadevelopers wants to merge 1 commit into
google:mainfrom
techleadevelopers:feat/cli-list-plugins
Closed

feat: introduce top-level plugins list command for active scalibr plugins#2809
techleadevelopers wants to merge 1 commit into
google:mainfrom
techleadevelopers:feat/cli-list-plugins

Conversation

@techleadevelopers

Copy link
Copy Markdown

Description

This PR introduces a new top-level CLI command plugins list to address the missing capability of inspecting active/installed plugins directly via the CLI (resolving the capability requested in #2783).

Instead of adding complex output formats, the command is built as a lightweight, clean entry point that interfaces with the underlying plugin catalog helper layer.

Changes

  • cmd/osv-scanner/main.go & testmain_test.go: Registered the new plugins command group and wired dependencies.
  • cmd/osv-scanner/plugins/: Created the new sub-command structure (command.go), integration tests (command_test.go), and testing bootstraps.
  • internal/scalibrplugin/: Implemented resolve.go and its respective tests to cleanly fetch and expose the active plugin list from the catalog without bleeding internal structures into the CLI logic.

Testing Strategy

  • Added unit tests for the plugin resolution helper logic under internal/scalibrplugin.
  • Added integration/CLI validation tests in cmd/osv-scanner/plugins/command_test.go using pure content-matching assertions instead of strict file-based snapshots to reduce future CI/CD friction and ensure test stability.

@google-cla

google-cla Bot commented May 17, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@G-Rath

G-Rath commented May 17, 2026

Copy link
Copy Markdown
Collaborator

Appreciate your interest but please follow the process outlined in our contributing guide before

@G-Rath G-Rath closed this May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants