Formatting and hammerspoon

This commit is contained in:
arnie
2025-12-29 12:23:03 +01:00
parent c34274413a
commit b9b62ea3c3
4 changed files with 122 additions and 125 deletions
+3 -1
View File
@@ -29,7 +29,9 @@
echo "Commands:"
echo -n '${
builtins.toJSON (
builtins.mapAttrs (s: value: value.description) self.devShells.${pkgs.stdenv.hostPlatform.system}.default.config.scripts
builtins.mapAttrs (
s: value: value.description
) self.devShells.${pkgs.stdenv.hostPlatform.system}.default.config.scripts
)
}' | \
${pkgs.jq}/bin/jq -r 'to_entries | map(" \(.key)\n" + " - \(if .value == "" then "no description provided" else .value end)") | "" + .[]'