nicolaferraro opened a new issue #1188: Add an init/scaffold subcommand
URL: https://github.com/apache/camel-k/issues/1188
 
 
   We can make it easier to start working on a new integration by providing a 
`kamel init` or `kamel scaffold` command.
   
   `$ kamel init myroute.groovy`
   Generates a the file:
   
   myroute.groovy
   ```
   // camel-k: language=groovy
   
   // you can write your routes here
   
   ```
   
   But it's more interesting with Java:
   `$ kamel init Integration.java`
   
   Integration.java
   ```
   // camel-k: language=java
   
   import org.apache.camel.builder.RouteBuilder;
   
   public class Integration extends RouteBuilder {
     @Override
     public void configure() throws Exception {
       // you can write your routes here
       
     }
   }
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to