mirror of
https://github.com/prdlk/gh-commit.git
synced 2026-09-16 23:16:25 +00:00
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.
13 lines
335 B
Bash
Executable File
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" "$@"
|