[
https://issues.apache.org/jira/browse/CAMEL-21082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17874256#comment-17874256
]
Aurélien Pupier commented on CAMEL-21082:
-----------------------------------------
>From end-user point of view, the init command is to create a new Camel route.
>Not to quickly set something to reproduce an issue. i think this use case for
>end-user is more importnant.
The pattern of deleting folders without warning to end-user is not a
user-friendly one. usually from command-line when it happens we need to precise
a --force and/or a --recursive options.
>From tooling point of view, it would be convenient to use this command to
>create a new camel route in an existing folder, not just for prototyping. Not
>blocking anyway on this part as we can specify the relative path with folder
>names.
Having a cleanDir option sounds fine BUT with the *default value to be false*
to be sure that end-users knows that it is deleting the folder.
> camel-jbang init command is deleting existing routes/files when using --dir
> option
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-21082
> URL: https://issues.apache.org/jira/browse/CAMEL-21082
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Affects Versions: 4.7.0
> Reporter: Aurélien Pupier
> Assignee: Aurélien Pupier
> Priority: Major
>
> {noformat}
> jbang '-Dcamel.jbang.version=4.7.0' camel@apache/camel init
> firstone.camel.yaml --dir=target-folder
> {noformat}
> the firstone.camel.yaml file is created
> {noformat}
> jbang '-Dcamel.jbang.version=4.7.0' camel@apache/camel init
> secondone.camel.yaml --dir=target-folder
> {noformat}
> the firstone.camel.yaml file is deleted (without warning) and
> secondone.camel.yaml is created
--
This message was sent by Atlassian Jira
(v8.20.10#820010)