Files
gh-commit/gh-commit
T
2026-02-27 10:30:41 -05:00

18 lines
468 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# gh-commit: AI-powered scoped git commits
# Install: gh extension install prdlk/gh-commit
# Requires: uv (https://docs.astral.sh/uv)
EXTENSION_DIR="$(cd "$(dirname "$0")" && pwd)"
SCRIPT="${EXTENSION_DIR}/smartcommit.py"
if ! command -v uv &>/dev/null; then
echo "error: 'uv' is required but not installed"
echo "install: curl -LsSf https://astral.sh/uv/install.sh | sh"
exit 1
fi
exec uv run --script "${SCRIPT}" "$@"