Comment out property
Apache 2.0Comment out a YAML property and add a comment in front.
org. openrewrite. yaml. CommentOutPropertyRequired
The key to be commented out.
The comment text to be added before the specified key.
Optional
commentOutPropertyBoolean
If false, property wouldn't be commented out, only comment will be added. By default, set to true
mod run . --recipe= org. openrewrite. yaml. CommentOutProperty \
-P propertyKey= applicability. singleSource \
-P commentText= 'The `foo` property is deprecated, please migrate'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.