nicolaferraro opened a new pull request #1219: fix #1188: add init command
URL: https://github.com/apache/camel-k/pull/1219
 
 
   <!-- Description -->
   
   fix #1188
   
   This also adds a proper VFS in order to be able to organize embedded files 
in directories (and to compress them).
   
   ```
   [nferraro@localhost camel-k]$ kamel init Example.java
   [nferraro@localhost camel-k]$ cat Example.java 
   // camel-k: language=java
   
   import org.apache.camel.builder.RouteBuilder;
   
   public class Example extends RouteBuilder {
     @Override
     public void configure() throws Exception {
   
         // Write your routes here, for example:
         from("timer:java?period=1s")
           .routeId("java")
           .setBody()
             .simple("Hello Camel K from ${routeId}")
           .to("log:info");
   
     }
   }
   ```
   
   
   <!--
   Enter your extended release note in the below block. If the PR requires
   additional action from users switching to the new release, include the string
   "action required". If no release note is required, write "NONE". 
   
   You can (optionally) mark this PR with labels "kind/bug" or "kind/feature" 
to make sure
   the text is added to the right section of the release notes. 
   -->
   
   **Release Note**
   ```release-note
   A kamel init command has been added to quickly scaffold integration files 
(e.g. kamel init Example.java)
   ```
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to