Audit with AI

This commit is contained in:
2025-11-16 11:37:02 +05:30
parent 551e2123bc
commit 29cddb6389
24 changed files with 1286 additions and 79 deletions

View File

@@ -1,4 +1,7 @@
.PHONY: run bench-select test
.PHONY: run bench-select test build install
# Version can be set via: make build VERSION=v1.2.3
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
run:
go run ./cmd -o ./playground/db ./playground/schema.sql
@@ -8,3 +11,15 @@ bench-select:
test:
go test ./playground
# Build with version information
build:
go build -ldflags "-X main.version=$(VERSION)" -o pgm ./cmd
# Install to GOPATH/bin with version
install:
go install -ldflags "-X main.version=$(VERSION)" ./cmd
# Show current version
version:
@echo "Version: $(VERSION)"