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

   ## Summary
   
   - Add `--plugin-config` CLI option to all plugin commands (`add`, `get`, 
`list`, `delete`) to load/save plugin configuration from a custom location
   - Support `CAMEL_CLI_PLUGIN_CONFIG` environment variable as an alternative 
to the CLI option
   - The custom path can be a JSON file or a directory (the default filename 
`.camel-jbang-plugins.json` is resolved inside it)
   - Resolution order: explicit CLI option > environment variable > default 
`~/.camel-jbang-plugins.json`
   
   ## Test plan
   
   - [x] Unit tests for `PluginHelper.getCustomPluginConfigPath()` — default, 
custom file, custom directory, reset
   - [x] Unit tests for `getPluginConfig(Path)`, `createPluginConfig(Path)`, 
`savePluginConfig(JsonObject, Path)` with custom paths
   - [x] Unit test verifying custom path is isolated from default config
   - [x] Integration test for `PluginGet` with custom config file
   - [x] Integration test for `PluginGet` with custom config directory
   - [x] `createPluginConfig` creates parent directories for custom paths
   - [x] All 30 tests pass
   
   _Claude Code on behalf of christophd_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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