Skip to content

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

@blipper

Description

@blipper

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions