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

   ## Summary
   
   Implements the improvements outlined in 
[CAMEL-23236](https://issues.apache.org/jira/browse/CAMEL-23236) to make the 
Camel JBang CLI more approachable for beginners:
   
   - **Context-aware shell banner**: The shell now detects route files in the 
current directory and shows appropriate quick-start hints. When no routes are 
found, suggests `init`, `run --example`, `doc`, and `plugin add kit`. When 
routes exist, suggests `run *` and `run * --dev`.
   
   - **Interactive `camel init` picker**: When `camel init` is invoked with no 
arguments in an interactive terminal (TTY, non-CI), shows an interactive 
template picker that guides users through selecting a category, template, and 
filename. Non-interactive behavior is unchanged.
   
   - **`camel run --example`**: Zero-to-running experience with built-in 
examples:
     - `camel run --example timer-log` — timer that logs messages
     - `camel run --example rest-api` — REST API with hello endpoints
     - `camel run --example cron-log` — scheduled task
     - `camel run --example-list` — shows available examples
   
   - **Extended "did you mean?" suggestions**: `SuggestSimilarHelper` now used 
in `CatalogBaseCommand` (when filter returns no results) and in `run --example` 
(when unknown example name given).
   
   - **`camel doctor` command**: Diagnostic command checking Java version, 
JBang, Camel version, Maven Central reachability, Docker status, common port 
conflicts, and disk space.
   
   - **Camel-Kit discoverability**: Added `KIT` to `PluginType` enum, tip in 
`init --help` footer, and hints in shell banner.
   
   Note: `camel doc` was already registered as a top-level alias (item 1 from 
the plan).
   
   ## Test plan
   
   - [x] All 311 existing tests pass
   - [x] `PluginGetTest` updated for new KIT plugin entry
   - [x] Code formatted with `mvn formatter:format impsort:sort`
   - [ ] Manual testing of interactive init picker
   - [ ] Manual testing of `camel run --example timer-log`
   - [ ] Manual testing of `camel doctor`
   - [ ] Manual testing of shell banner


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