generateAllShims top-level property

FigGenerator generateAllShims
final

Implementation

final FigGenerator generateAllShims = FigGenerator(
  script: ["jenv", "shims", "--short"],
  postProcess: (String out, [List<String>? tokens]) {
    return out
        .split("\n")
        .where((line) => line.trim().isNotEmpty)
        .map((command) => FigSuggestion(
              name: command,
              icon: "fig://icon?type=command",
              priority: 51,
            ))
        .toList();
  },
);