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

Claus Ibsen edited comment on CAMEL-21082 at 8/16/24 8:32 AM:
--------------------------------------------------------------

We could add an option `--cleanDir=true|false` that you can use to control 
whether to clean the dir first. 

We can then change the default to false, so the dir is not cleaned.

However the original intention was that you can quickly start a fresh prototype 
in some junk folder you may use all the time

camel init foo.yaml --dir=myjunk

We use this many times when users on Camel report this or that does not work, 
and we want to quickly get something up to reproduce what they do.




was (Author: davsclaus):
We could add an option `--cleanDir=true` that you can set to false if you do 
not want to clean the dir beforehand, so call via --cleanDir=false

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

Reply via email to