runname top-level property

FigGenerator runname
final

Implementation

final FigGenerator runname = FigGenerator(
  script: ['bash', '-c', 'cat .nextflow/history | awk \'{ print \$4 }\''],
  postProcess: (String output, [List<String>? tokens]) {
    if (output.isEmpty) {
      return <FigSuggestion>[];
    }
    return output
        .split('\n')
        .where((runname) => runname.trim().isNotEmpty)
        .map((runname) => FigSuggestion(
              name: runname.replaceAll('*', '').trim(),
              description: 'Run name',
            ))
        .toList();
  },
);