style: format (alejandra)

This commit is contained in:
zerosummed
2025-02-14 21:06:51 +03:00
parent 70021da132
commit e1c484b1c0
14 changed files with 363 additions and 341 deletions

View File

@@ -1,14 +1,14 @@
{ pkgs, ... }:
{pkgs, ...}:
pkgs.writeShellScriptBin "supabase" ''
# Get the root of the repository
GIT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || echo .)"
# Get the root of the repository
GIT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || echo .)"
# Source .env from root of the repo if it exists
if [ -f "$GIT_ROOT/.env" ]; then
set -a
. "$GIT_ROOT/.env"
set +a
fi
# Source .env from root of the repo if it exists
if [ -f "$GIT_ROOT/.env" ]; then
set -a
. "$GIT_ROOT/.env"
set +a
fi
${pkgs.supabase-cli}/bin/supabase --workdir "$GIT_ROOT/web" $@
${pkgs.supabase-cli}/bin/supabase --workdir "$GIT_ROOT/web" $@
''