updatesGenerator top-level property
Implementation
final FigGenerator updatesGenerator = FigGenerator(
script: ['softwareupdate', '--list'],
postProcess: (String out, [List<String>? tokens]) {
return out
.split('\n')
.where((line) => line.startsWith('* Label: '))
.map((line) {
final name = line.substring(9);
return FigSuggestion(
name: name,
insertValue: '"$name"',
description: 'Available update',
);
}).toList();
},
scriptTimeout: 20000,
// Cache strategy not explicitly supported in Dart FigGenerator yet, but can be added if supported
);