You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/04/17 12:49:19 UTC

[GitHub] [camel-k] davsclaus opened a new issue #1409: kamel run that can auto discover/guess what to include and run

davsclaus opened a new issue #1409: kamel run that can auto discover/guess what to include and run
URL: https://github.com/apache/camel-k/issues/1409
 
 
   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.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] nicolaferraro commented on issue #1409: kamel run that can auto discover/guess what to include and run

Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #1409: kamel run that can auto discover/guess what to include and run
URL: https://github.com/apache/camel-k/issues/1409#issuecomment-615229906
 
 
   That would work for the API scenario, but there are cases where it will make bad assumptions. E.g. in https://github.com/openshift-integration/camel-k-example-event-streaming you have multiple Java files, but most of them are to be run independently.
   
   I think that after Luca fixes https://github.com/apache/camel-k/pull/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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] davsclaus commented on issue #1409: kamel run that can auto discover/guess what to include and run

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #1409: kamel run that can auto discover/guess what to include and run
URL: https://github.com/apache/camel-k/issues/1409#issuecomment-615225920
 
 
   ![Screenshot 2020-04-17 at 14 44 58](https://user-images.githubusercontent.com/477100/79570960-a5abe600-80ba-11ea-92b8-67715b08932c.png)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] nicolaferraro commented on issue #1409: kamel run that can auto discover/guess what to include and run

Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #1409: kamel run that can auto discover/guess what to include and run
URL: https://github.com/apache/camel-k/issues/1409#issuecomment-615234070
 
 
   > #1400 should be working now, please retest :)
   
   You said that also yesterday ;)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] lburgazzoli commented on issue #1409: kamel run that can auto discover/guess what to include and run

Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1409: kamel run that can auto discover/guess what to include and run
URL: https://github.com/apache/camel-k/issues/1409#issuecomment-615231412
 
 
   #1400 should be working now, please retest :)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services