gnodet opened a new pull request, #22184: URL: https://github.com/apache/camel/pull/22184
## Summary - Replace `picocli-shell-jline3` with JLine 4's built-in `jline-picocli` module (`PicocliCommandRegistry`) which provides proper argument completion via picocli's `AutoComplete` - Simplify `Shell.java` from ~140 lines of manual JLine setup to ~20 lines using JLine 4's `Shell.builder()` API - Bump JLine version to pick up the new picocli integration ### Before The `camel shell` REPL only completed command names — no completion for options, option values, or positional parameters. ### After Full argument completion powered by picocli's `AutoComplete.complete()`: options, option values, positional parameters, completion candidates, and nested subcommands all complete properly. ## Dependencies > **⚠️ DRAFT — blocked on JLine release** > > This PR depends on [jline/jline3#1708](https://github.com/jline/jline3/pull/1708) which adds `Command.completer()` and fixes `PicocliCommandRegistry` completion. The JLine version will be updated to the release version once that PR is merged and released. ## Test plan - [x] `camel-jbang-core` compiles and all tests pass - [x] Manual testing of `camel shell` with tab completion for command arguments - [ ] Update JLine version to release once jline/jline3#1708 is released -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
