Skip to content

Commit

Permalink
Mention that several text recipes support multi-line inputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd committed Feb 9, 2024
1 parent f4124b4 commit 76f5e5e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@EqualsAndHashCode(callSuper = false)
public class ChangeText extends Recipe {
@Option(displayName = "Text after change",
description = "The text file will have only this text after the change.",
description = "The text file will have only this text after the change. The snippet provided here can be multiline.",
example = "Some text.")
String toText;

Expand Down
2 changes: 1 addition & 1 deletion rewrite-core/src/main/java/org/openrewrite/text/Find.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public String getDescription() {
}

@Option(displayName = "Find",
description = "The text to find.",
description = "The text to find. This snippet can be multiline.",
example = "blacklist")
String find;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
public class FindAndReplace extends Recipe {

@Option(displayName = "Find",
description = "The text to find (and replace).",
description = "The text to find (and replace). This snippet can be multiline.",
example = "blacklist")
String find;

@Option(displayName = "Replace",
description = "The replacement text for `find`. This supports multiline strings.",
description = "The replacement text for `find`. This snippet can be multiline.",
example = "denylist",
required = false)
@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public String getDescription() {
}

@Option(displayName = "Find",
description = "The text to find.",
description = "The text to find. This snippet can be multiline.",
example = "blacklist")
String find;

Expand Down

0 comments on commit 76f5e5e

Please sign in to comment.