generateVolumes top-level property
生成卷列表
Implementation
final FigGenerator generateVolumes = FigGenerator(
script: ['ls', '/Volumes'],
postProcess: (String out, [List<String>? tokens]) {
return out
.trim()
.split('\n')
.where((volume) => volume != 'Macintosh HD')
.map((volume) => FigSuggestion(
name: '/Volumes/$volume',
type: SuggestionType.file,
priority: 100,
))
.toList();
},
);