You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if we could make the kamel CLI somewhat smart for development purposes and allow to to try to auto discover/guess what you have to make it run.
Then it can output on the CLI what it have discovered and what the arguments on the CLI would be if typed manually.
Inspired by nicolas little demo, see screenshot
So it will look in the current folder the files and look inside to see what they are
*.java are java source code and included
*.jar are JAR as dependencies and included .properties are properties files and included
openapi.yaml are openapi contracts and enables this trait
*.xml are looked inside to see if they are camel routes / rests
This can really help new users to get going. Just add a source java, and drop your extra JARs to include, and set some configuration in the properties file.
The text was updated successfully, but these errors were encountered:
I think that after Luca fixes #1400, we have a good format for the kamel-config.yaml file and we can sponsor its usage more than we do today.
That way the workflow would be:
kamel init API.java
kamel run API.java --open-api openapi.yaml --property-file application.properties --save
# Then from now on
kamel run API.java
But I'm also ok with e.g. a --auto flag, like:
kamel init API.java
kamel run API.java --auto --save
# And it recognizes what you've indicated, prints it to the console, and the --save flag will also save the options to the config
This issue has been automatically marked as stale due to 90 days of inactivity.
It will be closed if no further activity occurs within 15 days.
If you think that’s incorrect or the issue should never stale, please simply write any comment.
Thanks for your contributions!
I wonder if we could make the kamel CLI somewhat smart for development purposes and allow to to try to auto discover/guess what you have to make it run.
Then it can output on the CLI what it have discovered and what the arguments on the CLI would be if typed manually.
Inspired by nicolas little demo, see screenshot
So it will look in the current folder the files and look inside to see what they are
*.java are java source code and included
*.jar are JAR as dependencies and included
.properties are properties files and included
openapi.yaml are openapi contracts and enables this trait
*.xml are looked inside to see if they are camel routes / rests
This can really help new users to get going. Just add a source java, and drop your extra JARs to include, and set some configuration in the properties file.
The text was updated successfully, but these errors were encountered: