CAMEL-23615: Add camel plugin list command#23545
Conversation
When the TUI launches examples via F2, stdout is redirected to a file so the child process detects no TTY and disables ANSI colors. Pass --logging-color=true explicitly so log output includes color codes that the TUI's LogTab already knows how to parse and render. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add new `camel plugin list` command that shows all available plugins (installed, bundled, and known 3rd party). The `camel plugin get` command now only shows installed plugins. The old `--all` flag on `camel plugin get` is deprecated and delegates to `camel plugin list`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
…bcommand Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
gnodet
left a comment
There was a problem hiding this comment.
Well-structured refactoring of the plugin CLI commands:
- New
PluginListextendsPluginGetto list all available plugins (installed, bundled, and 3rd party) — cleanly reusesRowandprintRows()from the parent. PluginGetrefocused to only show installed plugins. The--allflag is deprecated and hidden, with backward-compatible delegation toPluginList.doCall().RowandprintRows()visibility changed from private to package-private for subclass reuse.- Test updates reflect the new output format (added "Installed plugins:" header).
ParameterExceptionHandlerTestupdated to accommodate the newlistsubcommand in error output.- Upgrade guide entry and doc updates included.
The maxWidth bump from 50 to 80 on the DESCRIPTION column in printRows() is a nice UX improvement for the wider output.
LGTM.
Fully automatic review from Claude Code
|
🧪 CI tested the following changed modules:
💡 Manual integration tests recommended:
All tested modules (6 modules)
|
Summary
camel plugin listcommand that shows all available plugins (installed, bundled, and known 3rd party)camel plugin getnow only shows installed plugins--allflag oncamel plugin getis deprecated (hidden) and delegates tocamel plugin listTest plan
PluginGetTest— 3 tests pass (empty, installed, generated dependency)PluginListTest— 2 tests pass (default plugins, all plugins)camel plugin getshows only installedcamel plugin listshows installed + bundled + 3rd partycamel plugin get --allstill works (delegates to list)Claude Code on behalf of Claus Ibsen