mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
Merge pull request #707 from ulyssessouza/add-precommit-target
Add pre-commit target to Makefile
This commit is contained in:
commit
b666a21fe2
2
Makefile
2
Makefile
@ -96,6 +96,8 @@ validate-go-mod: ## Validate go.mod and go.sum are up-to-date
|
|||||||
|
|
||||||
validate: validate-go-mod validate-headers ## Validate sources
|
validate: validate-go-mod validate-headers ## Validate sources
|
||||||
|
|
||||||
|
pre-commit: all lint validate test e2e-local
|
||||||
|
|
||||||
help: ## Show help
|
help: ## Show help
|
||||||
@echo Please specify a build target. The choices are:
|
@echo Please specify a build target. The choices are:
|
||||||
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user