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 2023/03/07 14:37:00 UTC

[jira] [Commented] (CAMEL-18508) camel-jbang - User config file

    [ https://issues.apache.org/jira/browse/CAMEL-18508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17697458#comment-17697458 ] 

Claus Ibsen commented on CAMEL-18508:
-------------------------------------

branch with prototype
https://github.com/apache/camel/tree/jbang-user-config

You can then have a user config in ~/.camel-jbang-user.properties
where you can have default values for all command line options such as

camel-version = 3.20.1

then

camel run foo.yaml

will then use that camel version

> camel-jbang - User config file
> ------------------------------
>
>                 Key: CAMEL-18508
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18508
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.20.3, 3.21.0, 4.0-M3, 4.0
>
>
> It would be good to allow a user config file, where you can store various default values and versions for camel-jbang, such as
> - 3rd party maven repos
> - specific camel version to use
> - specific spring boot / quarkus version to use
> - etc.
> The config should contain key=value pairs as .properties which maps to CLI arguments when using the camel CLI.
> We can have commands ala:
> camel config list
> camel config get x
> camel config set x=y
> camel config unset x



--
This message was sent by Atlassian Jira
(v8.20.10#820010)