You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Tadayoshi Sato (Jira)" <ji...@apache.org> on 2025/03/26 07:46:00 UTC
[jira] [Created] (CAMEL-21896) camel-jbang - Allow configuration preset per directory
Tadayoshi Sato created CAMEL-21896:
--------------------------------------
Summary: camel-jbang - Allow configuration preset per directory
Key: CAMEL-21896
URL: https://issues.apache.org/jira/browse/CAMEL-21896
Project: Camel
Issue Type: Improvement
Components: camel-jbang
Affects Versions: 4.10.2
Reporter: Tadayoshi Sato
Camel CLI has {{camel config set}} command to preset parameters passed to {{camel run}} later:
https://camel.apache.org/manual/camel-jbang.html#_configuration
However, the preset config is saved at {{~/.camel-jbang-user.properties}} and only takes effect globally. Like common cli tools such as [direnv|https://github.com/direnv/direnv], it's desirable to configure the preset parameters per directory.
We can simply achieve this by making the Camel CLI to first look at {{.camel-jbang-user.properties}} in the current directory and if found take precedence over {{~/.camel-jbang-user.properties}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)