wip2
This commit is contained in:
20
Makefile
20
Makefile
@@ -38,7 +38,25 @@ release: clean
|
||||
@make darwin GOARCH=amd64
|
||||
@make darwin GOARCH=arm64
|
||||
|
||||
## fmt: Format Go source code
|
||||
fmt:
|
||||
@go fmt ./...
|
||||
|
||||
## vet: Run go vet
|
||||
vet:
|
||||
@go vet ./...
|
||||
|
||||
## tidy: Tidy and verify Go modules
|
||||
tidy:
|
||||
@go mod tidy
|
||||
@go mod verify
|
||||
|
||||
## lint: Run fmt, vet and build as basic linting
|
||||
lint: fmt vet
|
||||
@go build -o /dev/null .
|
||||
@echo "Linting complete"
|
||||
|
||||
## help: Show this message and exit
|
||||
help: Makefile
|
||||
@echo "Available recipes:"
|
||||
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
|
||||
@sed -n 's/^## //p' $< | column -t -s ':'
|
||||
|
||||
Reference in New Issue
Block a user