teamsGenerators top-level property
Implementation
final teamsGenerators = FigGenerator(
cache: FigCache(strategy: "stale-while-revalidate"),
script: ["fig", "team", "--list", "--format", "json"],
postProcess: (String out, [List<String>? tokens]) {
final json = jsonDecode(out) as List;
return json
.map((team) => FigSuggestion(
name: team['name'],
priority: 75,
))
.toList();
},
);