just/bin/update-completions
2024-05-29 09:28:45 +00:00

14 lines
212 B
Bash
Executable File

#!/usr/bin/env bash
set -euxo pipefail
cargo build
for script in completions/*; do
shell=${script##*.}
if [ $shell == nu ]; then
continue
fi
./target/debug/just --completions $shell > $script
done