just/bin/update-completions

14 lines
212 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
set -euxo pipefail
cargo build
for script in completions/*; do
shell=${script##*.}
2023-10-09 06:24:47 +02:00
if [ $shell == nu ]; then
continue
fi
./target/debug/just --completions $shell > $script
done