You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2025/04/03 15:24:00 UTC

[jira] [Resolved] (CAMEL-21896) camel-jbang - Allow configuration preset per directory

     [ https://issues.apache.org/jira/browse/CAMEL-21896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-21896.
---------------------------------
    Resolution: Fixed

> camel-jbang - Allow configuration preset per directory
> ------------------------------------------------------
>
>                 Key: CAMEL-21896
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21896
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-jbang
>    Affects Versions: 4.10.2
>            Reporter: Tadayoshi Sato
>            Assignee: Federico Mariani
>            Priority: Major
>             Fix For: 4.12.0
>
>
> 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)