Files
gh-commit/gh-commit
T
Prad Nukala 3086dac5d6 refactor: replace Go binary with uv-run smartcommit.py launcher
The extension is now a bash launcher that runs smartcommit.py via
uv run --script (Crush backend, DuckDB scopes). Removes the Go
implementation and the gh-extension-precompile workflow; the bundled
gh-commit.tar.gz now packages the script instead of a compiled binary.
2026-08-18 14:26:07 -04:00

13 lines
335 B
Bash
Executable File

#!/usr/bin/env bash
# gh-commit launcher — runs the bundled Python implementation via uv.
set -euo pipefail
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if ! command -v uv >/dev/null 2>&1; then
echo "gh-commit: 'uv' is required (https://docs.astral.sh/uv)" >&2
exit 1
fi
exec uv run --script "$DIR/smartcommit.py" "$@"