Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an init/scaffold subcommand #1188

Closed
nicolaferraro opened this issue Jan 10, 2020 · 1 comment · Fixed by #1219
Closed

Add an init/scaffold subcommand #1188

nicolaferraro opened this issue Jan 10, 2020 · 1 comment · Fixed by #1219
Assignees
Labels
kind/feature New feature or request
Milestone

Comments

@nicolaferraro
Copy link
Member

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
    
  }
}
@nicolaferraro nicolaferraro added this to the 1.0.0-RC2 milestone Jan 10, 2020
@nicolaferraro nicolaferraro added the kind/feature New feature or request label Jan 10, 2020
@zregvart
Copy link
Member

Would be nice if a test template was added also.

@nicolaferraro nicolaferraro self-assigned this Jan 21, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Jan 22, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Jan 22, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Jan 23, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Jan 28, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Jan 28, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Jan 28, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Jan 28, 2020
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Jan 28, 2020
nicolaferraro added a commit that referenced this issue Jan 28, 2020
nicolaferraro added a commit that referenced this issue Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants