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

   ## Summary
   
   - Replace the 3 hardcoded built-in examples with a catalog-driven system 
sourcing examples from the 
[apache/camel-jbang-examples](https://github.com/apache/camel-jbang-examples) 
repository
   - Add `ExampleHelper` with catalog loading, filtering by name/tag/level, 
bundled extraction, and GitHub fetch for online examples
   - Refactor `--example` / `--example-list` in `Run.java` to use the catalog 
JSON
   - `--example-list` now shows NAME, LEVEL, DESCRIPTION, SOURCE columns and 
supports filtering (e.g. `--example-list beginner`, `--example-list ai`)
   - Bundled examples (7) work offline, non-bundled examples fetch from GitHub 
on demand
   - Add `-Psync-example-catalog` Maven profile to download the latest catalog 
from the examples repo
   - Bundle 7 curated examples with READMEs: timer-log, rest-api, cron-log, 
circuit-breaker, groovy, routes, xslt
   
   The catalog system uses `camel-jbang-example-catalog.json` generated from 
per-example `metadata.json` files in the examples repo (see 
[apache/camel-jbang-examples@66b6871](https://github.com/apache/camel-jbang-examples/commit/66b6871)).
   
   ## Test plan
   
   - [x] `ExampleHelperTest` — 14 tests covering catalog loading, filtering, 
extraction, GitHub URL generation
   - [x] `RunTest` — 11 tests covering listing, filtering, unknown example 
suggestions, option parsing
   - [ ] Manual: `camel run --example-list` shows all 21 examples with levels
   - [ ] Manual: `camel run --example-list beginner` filters to 7 beginner 
examples
   - [ ] Manual: `camel run --example circuit-breaker` runs the bundled example 
offline
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   _Claude Code on behalf of Claus Ibsen_


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