formulaeGenerator top-level property

FigGenerator formulaeGenerator
final

Implementation

final FigGenerator formulaeGenerator = FigGenerator(
  script: ['brew', 'list', '-1'],
  postProcess: (out, [tokens]) {
    return out
        .split('\n')
        .where((line) => !line.contains('='))
        .map((formula) => FigSuggestion(
              name: formula,
              icon: '🍺',
              description: 'Installed formula',
            ))
        .toList();
  },
);