commandGenerator top-level property
Implementation
final FigGenerator commandGenerator = FigGenerator(
script: {
'command': 'bash',
'args': ['-c', 'uv run | grep -E \'^- \' | sed \'s/^- //\''],
},
postProcess: (out, [tokens]) {
return out
.split('\n')
.where((line) => line.trim().isNotEmpty)
.map((line) => FigSuggestion(
name: line,
description: 'Command',
icon: 'fig://icon?type=command',
priority: 80,
))
.toList();
},
);