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
Declarative preconditions currently associate via AND if you declare multiple on the same recipe.
If you want to achieve an OR relationship, you can do it, but through a much more verbose "diamond" pattern.
What problem are you trying to solve?
Declarative preconditions currently associate via
AND
if you declare multiple on the same recipe.If you want to achieve an
OR
relationship, you can do it, but through a much more verbose "diamond" pattern.Sample:
(if you imagine graphing how those 5 recipes relate to each other, it kinda looks like a diamond)
Describe the solution you'd like
Have you considered any alternatives or workarounds?
Support for passing nested recipes as recipe arguments in declarative recipes? :)
This could allow something like:
Additional context
cc @sambsnyd
Are you interested in contributing this feature to OpenRewrite?
Assuming we can bless a design, yeah, I suspect the code won't be too treacherous
The text was updated successfully, but these errors were encountered: