You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spike on a solution that allows users to execute recipes by name.
A new "Recipe Catalog" has mappings from the Recipe name to the recipe's artifact.
The Recipe Catalog also provides information about required and optional Recipe parameters.
Recipe Catalog
recipeCatalog:
- recipeId: AddLicenseHeaderartifactGav: org.openrewrite:rewrite-java:8.13.4recipeName: org.openrewrite.java.AddLicenseHeaderdescription: Adds the provided licenseText as license header to all Java files.repositoryUrl: https://github.com/openrewrite/rewriteparameters:
- name: licenseTexttype: Stringrequired: true
Providing Recipe Parameters
The mapping from command line arguments to Recipe parameters becomes quickly very complex.
For simple recipes with just String parameters like AddLicenseHeader that's not an issue.
But for more complex parameters, I'd change the API to expect parameters to be provided as JSON?
Spike on a solution that allows users to execute recipes by name.
A new "Recipe Catalog" has mappings from the Recipe name to the recipe's artifact.
The Recipe Catalog also provides information about required and optional Recipe parameters.
Recipe Catalog
Providing Recipe Parameters
The mapping from command line arguments to Recipe parameters becomes quickly very complex.
For simple recipes with just String parameters like
AddLicenseHeader
that's not an issue.But for more complex parameters, I'd change the API to expect parameters to be provided as JSON?
The text was updated successfully, but these errors were encountered: