apheleia/test/formatters/run-func.bash

13 lines
318 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
2022-05-01 14:40:02 -07:00
# Avoid using git to get project directory, due to
2023-08-26 09:05:35 -07:00
# https://github.com/radian-software/apheleia/pull/89#issuecomment-1107319617
2022-05-01 14:40:02 -07:00
cd "$(dirname "$0")"
2022-05-01 14:40:02 -07:00
repo="$(cd ../.. && pwd)"
exec emacs --batch -L "${repo}" -L . -l apheleia-ft \
--eval "(setq debug-on-error t)" -f "$1"