dotenvFilepathsGenerator top-level property
Implementation
final FigGenerator dotenvFilepathsGenerator = FigGenerator(
template: 'filepaths',
filterTemplateSuggestions: (List<FigSuggestion> paths) {
final regex = RegExp(r'\.env(?!rc)');
return paths.where((file) {
final name = file.name;
if (name == null) return false;
return regex.hasMatch(name) || name.endsWith('/');
}).map((file) {
if (regex.hasMatch(file.name!)) {
return _copySuggestion(file, priority: priorityTopThreshold);
}
return file;
}).toList();
},
);