forked from 766b/godox
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## Help display. | ||
## Pulls comments from beside commands and prints a nicely formatted | ||
## display with the commands and their usage information. | ||
|
||
.DEFAULT_GOAL := help | ||
|
||
help: ## Prints this help | ||
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: lint | ||
lint: ## Lint the application | ||
golangci-lint run --max-same-issues=0 --timeout=1m ./... | ||
|
||
.PHONY: test | ||
test: ## Run unit tests | ||
go test -race -shuffle=on ./... | ||
|
||
.PHONY: vet | ||
vet: ## Run go vet | ||
go vet ./... |