just/bin/update-completions

14 lines
212 B
Plaintext
Raw Permalink Normal View History

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