Formatting and hammerspoon
This commit is contained in:
@@ -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)") | "" + .[]'
|
||||
|
||||
Reference in New Issue
Block a user