feat: scaffold Go project with cobra CLI, Makefile, and config
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>
This commit is contained in:
23
Makefile
Normal file
23
Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user