Add recipe for testing bash completion script (#2221)
This commit is contained in:
parent
3e0909701c
commit
42691e1043
10
justfile
10
justfile
@ -217,6 +217,16 @@ _ruby:
|
|||||||
pwd:
|
pwd:
|
||||||
echo {{invocation_directory()}}
|
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:
|
# Local Variables:
|
||||||
# mode: makefile
|
# mode: makefile
|
||||||
# End:
|
# End:
|
||||||
|
Loading…
Reference in New Issue
Block a user