Commit 50ac65c

Eric Bower  ·  2026-09-15 07:36:55 -0400 EDT
parent 57d671f
chore: cleanup tasks
4 files changed,  +12, -29
+0, -22
......@@ -1,6 +1,3 @@
1-REV=$(shell git rev-parse --short HEAD)
2-PROJECT="git-pgit-$(REV)"
3-
41 smol:
52 curl https://pico.sh/smol.css -o ./static/smol.css
63 .PHONY: smol
......@@ -9,29 +6,10 @@ clean:
96 rm -rf ./public
107 .PHONY: clean
118
12-build:
13- go build -o pgit .
14-.PHONY: build
15-
169 img:
1710 docker build -t neurosnap/pgit:latest .
1811 .PHONY: img
1912
20-fmt:
21- go fmt ./...
22-.PHONY: fmt
23-
24-lint:
25- golangci-lint run
26-.PHONY: lint
27-
28-test:
29- go test ./...
30-.PHONY: test
31-
32-check: lint test
33-.PHONY: check
34-
3513 static:
3614 go run . \
3715 --out ./public \
+4, -4
......@@ -38,10 +38,10 @@ var funcMap = template.FuncMap{
3838 }
3939
4040 type Config struct {
41- // required params
42- Outdir string
43- // abs path to git repo
44- RepoPath string
41+ // required params
42+ Outdir string
43+ // abs path to git repo
44+ RepoPath string
4545
4646 // optional params
4747 // generate logs anad tree based on the git revisions provided
+0, -3
......@@ -1,3 +0,0 @@
1-[tools]
2-go = "1.25.0"
3-"go:golang.org/x/tools/gopls" = "latest"
+8, -0
......@@ -0,0 +1,8 @@
1+#/usr/bin/env bash
2+
3+export ZMX_SESSION_PREFIX="${ZMX_SESSION_PREFIX:-pgit.}"
4+zmx run fmt test -z "$(gofmt -l .)"
5+zmx run lint -d golangci-lint run
6+zmx run test -d go test -race ./...
7+zmx wait '*'
8+printf 'success!\n'