foundation/format.sh
5225225 0959de9f48 add format.sh from labs, reformat tree (#18)
Co-authored-by: Jake Hamilton <jake.hamilton@hey.com>
Reviewed-on: #18
Co-authored-by: 5225225 <5225225@mailbox.org>
Co-committed-by: 5225225 <5225225@mailbox.org>
2025-10-18 15:40:01 +00:00

6 lines
214 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -i bash -I "nixpkgs=https://github.com/nixos/nixpkgs/archive/nixos-unstable.tar.gz" -p nixfmt-rfc-style
files=$(find . -name "*.nix" -type f)
nixfmt ${1:-"--verify"} ${files}