Skip to content

CAMEL-23615: Add camel plugin list command#23545

Merged
davsclaus merged 3 commits into
mainfrom
CAMEL-23615-plugin-list-command
May 27, 2026
Merged

CAMEL-23615: Add camel plugin list command#23545
davsclaus merged 3 commits into
mainfrom
CAMEL-23615-plugin-list-command

Conversation

@davsclaus
Copy link
Copy Markdown
Contributor

Summary

  • Add new camel plugin list command that shows all available plugins (installed, bundled, and known 3rd party)
  • camel plugin get now only shows installed plugins
  • The old --all flag on camel plugin get is deprecated (hidden) and delegates to camel plugin list
  • Documented in 4.21 upgrade guide

Test plan

  • PluginGetTest — 3 tests pass (empty, installed, generated dependency)
  • PluginListTest — 2 tests pass (default plugins, all plugins)
  • Manual: camel plugin get shows only installed
  • Manual: camel plugin list shows installed + bundled + 3rd party
  • Manual: camel plugin get --all still works (delegates to list)

Claude Code on behalf of Claus Ibsen

davsclaus and others added 2 commits May 26, 2026 23:07
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>
@github-actions
Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

…bcommand

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@gnodet gnodet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well-structured refactoring of the plugin CLI commands:

  • New PluginList extends PluginGet to list all available plugins (installed, bundled, and 3rd party) — cleanly reuses Row and printRows() from the parent.
  • PluginGet refocused to only show installed plugins. The --all flag is deprecated and hidden, with backward-compatible delegation to PluginList.doCall().
  • Row and printRows() visibility changed from private to package-private for subclass reuse.
  • Test updates reflect the new output format (added "Installed plugins:" header).
  • ParameterExceptionHandlerTest updated to accommodate the new list subcommand 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

@github-actions
Copy link
Copy Markdown
Contributor

🧪 CI tested the following changed modules:

  • docs
  • dsl/camel-jbang/camel-jbang-core
  • dsl/camel-jbang/camel-jbang-plugin-tui

⚠️ Some tests are disabled on GitHub Actions (@DisabledIfSystemProperty(named = "ci.env.name")) and require manual verification:

  • dsl/camel-jbang/camel-jbang-core: 1 test(s) disabled on GitHub Actions

💡 Manual integration tests recommended:

You modified dsl/camel-jbang/camel-jbang-core. The related integration tests in dsl/camel-jbang/camel-jbang-it are excluded from CI. Consider running them manually:

mvn verify -f dsl/camel-jbang/camel-jbang-it -Djbang-it-test
All tested modules (6 modules)
  • Camel :: JBang :: Core
  • Camel :: JBang :: MCP
  • Camel :: JBang :: Plugin :: Route Parser
  • Camel :: JBang :: Plugin :: TUI
  • Camel :: JBang :: Plugin :: Validate
  • Camel :: Launcher :: Container

⚙️ View full build and test results

@davsclaus davsclaus merged commit 7ba0705 into main May 27, 2026
7 checks passed
@davsclaus davsclaus deleted the CAMEL-23615-plugin-list-command branch May 27, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants