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

Fix #1181: add --save option to install and run #1217

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

nicolaferraro
Copy link
Member

@nicolaferraro nicolaferraro commented Jan 21, 2020

Fix #1181

This allows to save the configuration into a file named kamel-config.yaml in the module root and to save the run and install configuration automatically.

E.g.

kamel run examples/simple.groovy -t quarkus.enabled=true -d camel:telegram --save

Will run the integration and save the command line options in the config file:

kamel:
  run:
    integration:
      simple:
        dependencies: '[camel:telegram]'
        traits: '[quarkus.enabled=true]'

From next time, the integration can be run with just:

kamel run examples/simple.groovy

NOTE: parameters can be also set for all integrations under kamel.run.xxx

Release Note

The kamel install and run commands provide a --save flag to store the command line parameters to the default configuration file

@oscerd oscerd merged commit acab986 into apache:master Jan 23, 2020
@nicolaferraro nicolaferraro mentioned this pull request Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify user experience when using config file
2 participants