This commit is contained in:
Jabberwocky238
2026-07-29 06:51:43 -04:00
parent 68cda1972c
commit 319f5dd148
64 changed files with 4952 additions and 2186 deletions
+18 -2
View File
@@ -7,16 +7,32 @@
GOFLAGS := -trimpath
.PHONY: build test clean proto proto-tools proto-check
.PHONY: build dev ctl test clean proto proto-tools proto-check
# build the simplegit server into ./build.
build:
go build $(GOFLAGS) -o simplegit ./cmd
@mkdir -p build
go build $(GOFLAGS) -o build/simplegit ./cmd
# dev runs the git smart-HTTP listener on :8093, the internal GitService and
# ManageService listener on :8094, and Git over SSH on :2223.
dev:
go run ./cmd daemon \
-http 127.0.1.1:8093 \
-gitrpc 127.0.1.1:8094 \
-ssh 127.0.1.1:2223
# ctl opens the management TUI against the dev gitrpc listener.
ctl:
go run ./cmd ctl -manage http://127.0.1.1:8094
# run all tests.
test:
go test ./...
clean:
rm -rf build
# ---- Connect (crpc) contract for gitrpc ----
# gitrpc/gitrpc.proto is the single source of truth for the gitrpc method set
# -- a typed replacement for the hand-written JSON-RPC handlers in