Skip to content

CAMEL-23226: Expand tab completion candidates in camel-jbang commands#22167

Merged
gnodet merged 5 commits intomainfrom
CAMEL-23226-tab-completion
Mar 23, 2026
Merged

CAMEL-23226: Expand tab completion candidates in camel-jbang commands#22167
gnodet merged 5 commits intomainfrom
CAMEL-23226-tab-completion

Conversation

@gnodet
Copy link
Contributor

@gnodet gnodet commented Mar 21, 2026

JIRA: CAMEL-23226

Summary

  • Add ProfileCompletionCandidates for --profile options in Run.java and ExportBaseCommand.java (dev, test, prod)
  • Add JavaVersionCompletionCandidates for --java-version options (17, 21, 25)
  • Add completionCandidates to --output-format options in DependencyList, Explain, and other commands
  • Apply completion candidates to --logging-level (DEBUG, INFO, WARN, ERROR, OFF, TRACE)
  • Apply completion candidates to --body-type in CamelReceiveAction (auto, string, file, binary)
  • Apply completion candidates to --runtime in Harden and TransformRoute (camel-main, spring-boot, quarkus)
  • Apply completion candidates to various options in Bind command

Test plan

  • Tab completion works for --profile showing dev, test, prod
  • Tab completion works for --java-version showing 17, 21, 25
  • Tab completion works for --output-format showing text, json, yaml
  • All affected commands still function correctly

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
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 build-all, build-dependents, 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.

…ration

- Fix MVEL template NPE when deprecated command has null deprecationNote
- Fix sanitizer ordering to remove (${COMPLETION-CANDIDATES}) before ${COMPLETION-CANDIDATES}
- Fix empty parentheses in generated option descriptions
- Generate missing camel-jbang-wrapper.adoc doc page
- Regenerate all affected command documentation pages

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

github-actions bot commented Mar 21, 2026

🧪 CI tested the following changed modules:

  • dsl/camel-jbang/camel-jbang-core
All tested modules (26 modules)
  • Camel :: Coverage
  • Camel :: Coverage [pom]
  • Camel :: JBang :: Core
  • Camel :: JBang :: Core [jar]
  • Camel :: JBang :: Integration tests
  • Camel :: JBang :: Integration tests [jar]
  • Camel :: JBang :: MCP
  • Camel :: JBang :: MCP [jar]
  • Camel :: JBang :: Main
  • Camel :: JBang :: Main [jar]
  • Camel :: JBang :: Plugin :: Edit
  • Camel :: JBang :: Plugin :: Edit [jar]
  • Camel :: JBang :: Plugin :: Generate
  • Camel :: JBang :: Plugin :: Generate [jar]
  • Camel :: JBang :: Plugin :: Kubernetes
  • Camel :: JBang :: Plugin :: Kubernetes [jar]
  • Camel :: JBang :: Plugin :: Route Parser
  • Camel :: JBang :: Plugin :: Route Parser [jar]
  • Camel :: JBang :: Plugin :: Testing
  • Camel :: JBang :: Plugin :: Testing [jar]
  • Camel :: JBang :: Plugin :: Validate
  • Camel :: JBang :: Plugin :: Validate [jar]
  • Camel :: Launcher
  • Camel :: Launcher [jar]
  • Camel :: Launcher :: Container
  • Camel :: Launcher :: Container [pom]

Revert tooling changes (MVEL template NPE fix, sanitizer ordering fix) to
avoid triggering the docs module in CI, which causes a race condition
between gulp scandir and concurrent test temp directory creation.
The tooling fixes will be submitted in a separate PR.
The metadata JSON and doc pages are already fixed directly in this PR.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
gnodet and others added 2 commits March 21, 2026 15:57
Remove generated doc pages and metadata changes from this PR to
avoid triggering the docs module in CI. The docs module has a known
race condition with concurrent test execution. The metadata and docs
will be regenerated when the tooling fixes are merged separately.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot removed the docs label Mar 21, 2026
@gnodet gnodet merged commit e7ccedd into main Mar 23, 2026
5 checks passed
@gnodet gnodet deleted the CAMEL-23226-tab-completion branch March 23, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants