aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2024-02-24 23:03:45 -0800
committerMax Resnick <max@ofmax.li>2024-02-24 23:03:45 -0800
commit9fe8f31ae379d4b30823f3c4f19842bf32aae034 (patch)
treefb8b180d2e05bf6520b636d3207e2506e0e860cf /justfile
parent794445b230ddad08480f35d58f4694023e5f7006 (diff)
downloadgo-git-server-9fe8f31ae379d4b30823f3c4f19842bf32aae034.tar.gz
fix: middleware didn't return
Diffstat (limited to 'justfile')
-rw-r--r--justfile11
1 files changed, 9 insertions, 2 deletions
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