mirror of https://github.com/0xERR0R/blocky.git
added "fmt" target
This commit is contained in:
parent
579ed116ff
commit
9be2d4ac96
3
Makefile
3
Makefile
|
@ -34,6 +34,9 @@ lint: build ## run golangcli-lint checks
|
|||
run: build ## Build and run binary
|
||||
./$(BIN_OUT_DIR)/$(BINARY_NAME)
|
||||
|
||||
fmt: ## gofmt and goimports all go files
|
||||
find . -name '*.go' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done
|
||||
|
||||
docker-build: ## Build docker image
|
||||
docker build --network=host --tag ${DOCKER_IMAGE_NAME} .
|
||||
|
||||
|
|
Loading…
Reference in New Issue