Create JSON file
Apache 2.0Create a new JSON file.
org. openrewrite. json. CreateJsonFileRequired
File path of new file.
Optional
Multiline text content for the file.
URL to file containing text content for the file. Use either fileContents or fileContentsUrl option.
overwriteExistingBoolean
If there is an existing file, should it be overwritten.
mod run . --recipe= org. openrewrite. json. CreateJsonFile \
-P relativeFileName= foo/ bar/ baz. jsonInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.