apheleia/test/formatters/run-func.bash
Radon Rosborough 108176abe5 Update links
2023-08-26 09:05:35 -07:00

11 lines
278 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
# Avoid using git to get project directory, due to
# https://github.com/radian-software/apheleia/pull/89#issuecomment-1107319617
cd "$(dirname "$0")"
repo="$(cd ../.. && pwd)"
exec emacs --batch -L "${repo}" -L . -l apheleia-ft -f "$1"