Hi

Can you share your pipe file you try to run

On Tue, Feb 25, 2025 at 7:25 PM Mikael Koskinen <mijap...@gmail.com> wrote:

> Hi,
>
> I'm wondering if it should be possible to use camel run --prompt with a
> Pipe where I have property placeholders?
>
> Currently I'm seeing this:
>
> camel run toslack.yaml --prompt
> 2025-02-25 20:20:12.678  INFO 16732 --- [           main]
> org.apache.camel.main.MainSupport
>        : Apache Camel (JBang) 4.10.0 is starting
> 2025-02-25 20:20:12.761  INFO 16732 --- [           main]
> org.apache.camel.main.MainSupport
>        : Using Java 17.0.14 with PID 16732. Started by mikoskinen in
> /home/mikoskinen/dev/spikes/pipes
> Enter required value for camel.main.cloud-properties-location: no
> 2025-02-25 20:21:14.243  INFO 16732 --- [           main]
> org.apache.camel.main.BaseMainSupport
>    : Cloud properties location: Optional[no]
> 2025-02-25 20:21:14.275  INFO 16732 --- [           main]
> org.apache.camel.main.ProfileConfigurer
>  : The application is starting with profile: dev
> 2025-02-25 20:21:14.430  INFO 16732 --- [           main]
> he.camel.cli.connector.LocalCliConnector : Camel JBang CLI enabled
> Enter required value for mychannel: #mkodev
> Enter required value for mychannel: #mkodev
> 2025-02-25 20:21:40.258  INFO 16732 --- [           main]
> .main.download.MavenDependencyDownloader : Resolved:
> org.apache.camel:camel-http:4.10.0 (took: 2s427ms)
> Enter required value for mychannel: #mkodev
> Enter required value for iconEmoji:
>
> So first possible problem is the "Enter required value for
> camel.main.cloud-properties-location
> "
>
> Then it asks the mychannel for few times, and after it asks for iconEmoji
> and for the others.
>
> If I just run it without --prompt and pass it the following
> application.properties:
>
> mychannel=#mkodev
>
> It works.
>
> Just wondering if this is something that should work.
>
> Best regards,
> Mikael
>


-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to