hosts top-level property

FigGenerator hosts
final

主机生成器

Implementation

final FigGenerator hosts = FigGenerator(
  script: ['fin', 'hosts'],
  postProcess: (String output, [List<String>? tokens]) {
    return output
        .split('\n')
        .where((host) => host.isNotEmpty && !host.startsWith('#'))
        .map((host) => FigSuggestion(
              name: host,
              description: 'Host',
            ))
        .toList();
  },
);