Add recipe for testing bash completion script (#2221)

This commit is contained in:
Casey Rodarmor 2024-07-04 10:49:54 -07:00 committed by GitHub
parent 3e0909701c
commit 42691e1043
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -217,6 +217,16 @@ _ruby:
pwd:
echo {{invocation_directory()}}
test-bash-completions:
rm -rf tmp
mkdir -p tmp/bin
cargo build
cp target/debug/just tmp/bin
./tmp/bin/just --completions bash > tmp/just.bash
echo 'mod foo' > tmp/justfile
echo 'bar:' > tmp/foo.just
cd tmp && PATH="`realpath bin`:$PATH" bash --init-file just.bash
# Local Variables:
# mode: makefile
# End: