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

Allow recipe parameters to be specified from the command line #333

Open
blipper opened this issue Sep 30, 2024 · 1 comment
Open

Allow recipe parameters to be specified from the command line #333

blipper opened this issue Sep 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@blipper
Copy link
Contributor

blipper commented Sep 30, 2024

What problem are you trying to solve?

Reduce friction to using OpenRewrite

Describe the solution you'd like

https://docs.openrewrite.org/running-recipes/running-rewrite-on-a-gradle-project-without-modifying-the-build#step-3-optional-create-a-custom-declarative-recipe

Right now the only way to pass parameters to recipes is creating a custom recipe. It would be great to have a command line mechanism similar to

bb rewriteRun  -Drewrite.activeRecipe=foo.Bar -Drewrite.params.foo.Bar.myParam1=paramValue

Have you considered any alternatives or workarounds?

Additional context

Are you interested in contributing this feature to OpenRewrite?

Yes.

@blipper blipper added the enhancement New feature or request label Sep 30, 2024
@timtebeek
Copy link
Contributor

Thanks for the offer to help @blipper ! For context: we added similar support for the Maven plugin in openrewrite/rewrite-maven-plugin#816, as documented. Ideally these implementations look alike as much as possible.

@timtebeek timtebeek moved this to Backlog in OpenRewrite Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants