CAMEL-23226: Enhance Shell with rich prompt, banner, and auto-suggestions#22170
Open
CAMEL-23226: Enhance Shell with rich prompt, banner, and auto-suggestions#22170
Conversation
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
Contributor
|
🧪 CI tested the following changed modules:
Build reactor — dependencies compiled but only changed modules were tested (4 modules)
|
This was referenced Mar 21, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add PosixCommandGroup (cd, ls, grep, cat, head, tail, etc.), InteractiveCommandGroup (nano, less, ttop), and enable script/variable commands for a richer shell experience. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…port - Add DefaultAliasManager with persistence at ~/.camel-jbang-aliases for persistent alias/unalias commands - Add init script support via ~/.camel-jbang-init file - Remove scriptCommands(true) which requires a scriptRunner to function Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
JLine 4.0.8 includes jline/jline3#1708 which fixes PicocliCommandRegistry to use picocli's AutoComplete for proper tab completion of options, option values, positional parameters, and nested subcommands. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
f496204 to
43c312b
Compare
- Restore HELP_COLORS variable for colored help output - Restore OTHERS_GROUP_NAME and COMPLETION_STYLE_GROUP variables - Use EnvironmentHelper.isColorEnabled() instead of duplicated logic - Use ShellBuilder import instead of FQCN where possible - Add TODO for replacing AutosuggestionWidgets with CommandTailTipWidgets (needs ShellBuilder to expose CommandDispatcher in onReaderReady callback) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIRA: CAMEL-23226
Summary
Builds on top of PR #22166 (Shell alias persistence) to add visual and UX enhancements to the JLine 4 shell:
camelin Camel orange (RGB), version in green:camel 4.19.0>Apache Camel JBang Shell v4.19.0with styled colors on startup, plus help hint~/work/my-project) in dim textAutosuggestionWidgetsfor ghost-text history suggestions (press right-arrow to accept)NO_COLOR/FORCE_COLORenvironment variables per https://no-color.org/Uses JLine's
AttributedStringBuilderwithforegroundRgb()for true-color terminal support. No Jansi dependency needed.Test plan
camel shelland verify colored prompt with version numberNO_COLOR=1and verify all output is plain textexitand Ctrl-C still quit cleanly