Commit 50ac65c
Eric Bower
·
2026-09-15 07:36:55 -0400 EDT
parent 57d671f
chore: cleanup tasks
M
Makefile
+0,
-22
| ... | ... | @@ -1,6 +1,3 @@ | |
| 1 | - | REV=$(shell git rev-parse --short HEAD) | |
| 2 | - | PROJECT="git-pgit-$(REV)" | |
| 3 | - | ||
| 4 | 1 | smol: | |
| 5 | 2 | curl https://pico.sh/smol.css -o ./static/smol.css | |
| 6 | 3 | .PHONY: smol |
| ... | ... | @@ -9,29 +6,10 @@ clean: | |
| 9 | 6 | rm -rf ./public | |
| 10 | 7 | .PHONY: clean | |
| 11 | 8 | ||
| 12 | - | build: | |
| 13 | - | go build -o pgit . | |
| 14 | - | .PHONY: build | |
| 15 | - | ||
| 16 | 9 | img: | |
| 17 | 10 | docker build -t neurosnap/pgit:latest . | |
| 18 | 11 | .PHONY: img | |
| 19 | 12 | ||
| 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 | - | ||
| 35 | 13 | static: | |
| 36 | 14 | go run . \ | |
| 37 | 15 | --out ./public \ |
M
main.go
+4,
-4
| ... | ... | @@ -38,10 +38,10 @@ var funcMap = template.FuncMap{ | |
| 38 | 38 | } | |
| 39 | 39 | ||
| 40 | 40 | 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 | |
| 45 | 45 | ||
| 46 | 46 | // optional params | |
| 47 | 47 | // generate logs anad tree based on the git revisions provided |
+0,
-3
A
pici.sh
+8,
-0