#!/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