apheleia/test/formatters/run-func.bash

12 lines
271 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
# https://github.com/raxod502/apheleia/pull/89#issuecomment-1107319617
cd "$(dirname "$0")"
2022-05-01 14:40:02 -07:00
repo="$(cd ../.. && pwd)"
exec emacs --batch -L "${repo}" -L . -l apheleia-ft -f "$1"