#!/bin/sh
# Quality gate: run all checks before allowing a commit (see AGENTS.md).
if command -v just >/dev/null 2>&1; then
    exec just ci
fi
if [ -x "$HOME/.cargo/bin/just" ]; then
    exec "$HOME/.cargo/bin/just" ci
fi
echo "pre-commit: 'just' not found; cannot run the ci gate" >&2
exit 1
