just/bin/generate-completions
2023-10-08 21:24:47 -07:00

12 lines
192 B
Bash
Executable File

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