generateAllCommands top-level property
Implementation
final FigGenerator generateAllCommands = FigGenerator(
script: ["jenv", "commands"],
postProcess: (String out, [List<String>? tokens]) {
return out
.split("\n")
.where((line) => line.trim().isNotEmpty && line.trim() != "--version")
.map((command) => FigSuggestion(
name: command,
icon: "fig://icon?type=command",
priority: 51,
))
.toList();
},
);