findD4rtgenProjects function

List<String> findD4rtgenProjects(
  1. String root
)

Directories under root whose buildkit.yaml has a d4rtgen: section, relative to root and sorted. .dart_tool and build trees are skipped.

Implementation

List<String> findD4rtgenProjects(String root) => projectDirectoriesUnder(
  root,
  'buildkit.yaml',
  accept: (file) => _d4rtgenSection.hasMatch(file.readAsStringSync()),
);