Skip to content

Commit

Permalink
added "fmt" target
Browse files Browse the repository at this point in the history
  • Loading branch information
0xERR0R committed Aug 25, 2021
1 parent 579ed11 commit 9be2d4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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} .

Expand Down

0 comments on commit 9be2d4a

Please sign in to comment.