mirror of
https://github.com/nix-community/flakelight.git
synced 2024-11-25 08:53:15 +01:00
Have formatters for each file run in parallel
This commit is contained in:
parent
84162f4098
commit
e5db2dcd86
@ -20,14 +20,15 @@ in
|
||||
PATH=${lib.makeBinPath (config.devShell.packages pkgs)}
|
||||
for f in "$@"; do
|
||||
if [ -d "$f" ]; then
|
||||
${fd}/bin/fd "$f" -Htf -x "$0"
|
||||
${fd}/bin/fd "$f" -Htf -x "$0" &
|
||||
else
|
||||
case "$(${coreutils}/bin/basename "$f")" in
|
||||
${toString (mapAttrsToList
|
||||
(n: v: "${n}) ${v} \"$f\";;") (config.formatters pkgs))}
|
||||
(n: v: "${n}) ${v} \"$f\" & ;;") (config.formatters pkgs))}
|
||||
esac
|
||||
fi
|
||||
done &>/dev/null
|
||||
wait
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user