bin: Add watch-run
This commit is contained in:
parent
b96424cf79
commit
fb7101a65b
2 changed files with 19 additions and 2 deletions
|
|
@ -10,10 +10,9 @@ fi
|
|||
dir="$1"; shift
|
||||
cmd=("$@")
|
||||
|
||||
echo 'Press Space or edit a file to run tests'
|
||||
# I specifically want the command to expand here.
|
||||
#
|
||||
# shellcheck disable=SC2068
|
||||
until fd . "${dir}" | entr -cdpr ${cmd[@]}; do
|
||||
until fd . "${dir}" | entr -cdr ${cmd[@]}; do
|
||||
echo 'Press Space or edit a file to re-run tests'
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue