From 56664d5110f2553bd072920fe92b40ed9fe9121f Mon Sep 17 00:00:00 2001 From: Mike Solomon Date: Mon, 10 Jul 2023 10:12:09 -0700 Subject: [PATCH] Add command line question (#200) Fixes: https://github.com/openrewrite/rewrite-docs/issues/199 Co-authored-by: Mike Sol --- reference/faq.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/reference/faq.md b/reference/faq.md index 8730eddb38..8cf09d6418 100644 --- a/reference/faq.md +++ b/reference/faq.md @@ -29,4 +29,13 @@ Yes. Take a look at the [getting started with data tables guide](https://docs.mo ## I want to exclude a single recipe from a collection of recipes. -This is not possible right now and doing so would be quite complicated. For a detailed explanation as to why, check out [this post](https://github.com/openrewrite/rewrite-maven-plugin/pull/569#issuecomment-1576793092). \ No newline at end of file +This is not possible right now and doing so would be quite complicated. For a detailed explanation as to why, check out [this post](https://github.com/openrewrite/rewrite-maven-plugin/pull/569#issuecomment-1576793092). + +## Is it possible to pass arguments to a recipe from the command line? I want to programmatically configure complex recipes. + +Not right now. This is a particularly difficult problem to address for a couple of reasons: + +* Some recipes can be composed of other recipes which could then include other recipes composed of other recipes and so on. +* Some recipes can be used multiple times in one recipe with different parameters such as in [this example](https://github.com/openrewrite/rewrite-migrate-java/blob/v2.0.6/src/main/resources/META-INF/rewrite/jakarta-ee-9.yml#L140-L160). + +There is an [open issue](https://github.com/openrewrite/rewrite-maven-plugin/issues/345) for this request that you can +1 or provide feedback on. \ No newline at end of file