Repository contains file

Apache 2.0

Intended to be used primarily as a precondition for other recipes, this recipe checks if a repository contains a specific file or files matching a pattern. If present all files in the repository are marked with a SearchResult marker. If you want to get only the matching file as a search result, use FindSourceFiles instead.

org.openrewrite.search.RepositoryContainsFile

Optional

A glob expression representing a file path to search for (relative to the project root). Blank/null matches all.Multiple patterns may be specified, separated by a semicolon ;. If multiple patterns are supplied any of the patterns matching will be interpreted as a match.

mod run . --recipe=org.openrewrite.search.RepositoryContainsFile

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.