Set up the Go module, directory structure, and minimal CLI entrypoint for the awesome-docker Go rewrite. Includes: - cobra-based CLI with version command - Makefile with build/test/lint/check/health/report/clean targets - config/exclude.yaml migrated from tests/exclude_in_test.json - config/website.tmpl.html copied from website/index.tmpl.html - .gitignore updated for Go binary Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
320 B
Makefile
24 lines
320 B
Makefile
BINARY := awesome-docker
|
|
.PHONY: build test lint check health report clean
|
|
|
|
build:
|
|
go build -o $(BINARY) ./cmd/awesome-docker
|
|
|
|
test:
|
|
go test ./internal/... -v
|
|
|
|
lint: build
|
|
./$(BINARY) lint
|
|
|
|
check: build
|
|
./$(BINARY) check
|
|
|
|
health: build
|
|
./$(BINARY) health
|
|
|
|
report: build
|
|
./$(BINARY) report
|
|
|
|
clean:
|
|
rm -f $(BINARY)
|