Create text file
Apache 2.0Creates a new plain text file.
org. openrewrite. text. CreateTextFileRequired
Multiline text content for the file.
File path of new file.
Optional
overwriteExistingBoolean
If there is an existing file, should it be overwritten.
mod run . --recipe= org. openrewrite. text. CreateTextFile \
-P fileContents= 'Some text. ' \
-P relativeFileName= foo/ bar/ baz. txtInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.