Skip to content

Commit

Permalink
Add recipe for testing bash completion script (#2221)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Jul 4, 2024
1 parent 3e09097 commit 42691e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 42691e1

Please sign in to comment.