From 9fe8f31ae379d4b30823f3c4f19842bf32aae034 Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Sat, 24 Feb 2024 23:03:45 -0800 Subject: fix: middleware didn't return --- justfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'justfile') diff --git a/justfile b/justfile index db5bd05..8f30dbd 100644 --- a/justfile +++ b/justfile @@ -1,12 +1,19 @@ TEMPDIR := `mktemp -d` +alias dr := debug-run +alias dt := debug-test build: CGO=0 go build -o go-git-server cmd/main.go +run: + go run cmd/main.go -s {{justfile_directory()}}/gitserver.yaml -r $(mktemp -d) + test: golangci-lint run go test -v -coverprofile={{ TEMPDIR }}/testcover.out ./... go tool cover -func={{ TEMPDIR }}/testcover.out +debug-run: + dlv debug cmd/main.go -- -s {{justfile_directory()}}/gitserver.yaml -r $(mktemp -d) -debug-test: - dlv test -- -test.v +debug-test pkg: + dlv test {{pkg}} -- -test.v -- cgit v1.2.3