generateInstalledDenoScripts top-level property
Implementation
final FigGenerator generateInstalledDenoScripts = FigGenerator(
script: [
"bash",
"-c",
"command find ~/.deno/bin -maxdepth 1 -perm -111 -type f",
],
postProcess: (out, [tokens]) {
return out
.split("\n")
.where((path) => path.isNotEmpty && !path.endsWith("/deno"))
.map((path) {
final name = path.split("/").last;
return FigSuggestion(
name: name,
icon: "📦",
description: path,
);
}).toList();
},
);