gnodet opened a new pull request, #22166:
URL: https://github.com/apache/camel/pull/22166

   ## Summary
   
   Builds on top of PR #22161 (JLine 4 shell migration) to add:
   
   - **Alias persistence**: Uses JLine's `DefaultAliasManager` with persistence 
file at `~/.camel-jbang-aliases`, giving users `alias` and `unalias` commands 
that survive shell restarts
   - **Init script support**: If `~/.camel-jbang-init` exists, it is executed 
on shell startup, allowing users to define custom aliases or run commands 
automatically
   - **Fix scriptCommands**: Removed `scriptCommands(true)` which requires a 
`scriptRunner` to be set to function properly; added a comment explaining why
   
   ## Test plan
   
   - [x] Build succeeds: `mvn install -B -pl dsl/camel-jbang/camel-jbang-core 
-DskipTests`
   - [x] Tests pass (1 pre-existing unrelated failure in 
`CamelSendActionInfraTest` for fhir scheme)
   - [ ] Manual: run `camel shell`, use `alias ls='get'`, restart shell, verify 
alias persists
   - [ ] Manual: create `~/.camel-jbang-init` with alias definitions, verify 
they load on startup


-- 
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]

Reply via email to