Something went wrong. Try again.
tui monitor configuration tool for niri with visual layout, drag-and-drop, and profile management
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940{ lib, writeShellScriptBin, deno, go, go-tools, gomod2nix, nixpkgs-fmt, taplo,}:
writeShellScriptBin "formatter" '' set -eoux pipefail shopt -s globstar
root="$PWD" while [[ ! -f "$root/.git/index" ]]; do if [[ "$root" == "/" ]]; then exit 1 fi root="$(dirname "$root")" done pushd "$root" > /dev/null
${lib.getExe deno} fmt readme.md **/*.yaml ${lib.getExe nixpkgs-fmt} . ${lib.getExe taplo} format **/*.toml
${lib.getExe go} fix ./... ${lib.getExe go} fmt ./... ${lib.getExe go} generate ./... ${lib.getExe go} mod tidy ${lib.getExe go} test -race ./... ${lib.getExe go} vet ./... ${lib.getExe' go-tools "staticcheck"} ./... ${lib.getExe' gomod2nix "gomod2nix"}
popd''