feat: refactor resolver in separate package
This commit is contained in:
parent
0e195fd9a7
commit
508a8dd7c4
17 changed files with 306 additions and 207 deletions
32
Makefile
32
Makefile
|
@ -1,25 +1,35 @@
|
|||
BIN := ./bin/doggo
|
||||
CLI_BIN := ./bin/doggo-cli.bin
|
||||
API_BIN := ./bin/doggo-api.bin
|
||||
|
||||
HASH := $(shell git rev-parse --short HEAD)
|
||||
BUILD_DATE := $(shell date '+%Y-%m-%d %H:%M:%S')
|
||||
VERSION := ${HASH}
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
go build -o ${BIN} -ldflags="-X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'" ./cmd/doggo/
|
||||
.PHONY: build-cli
|
||||
build-cli:
|
||||
go build -o ${CLI_BIN} -ldflags="-X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'" ./cmd/doggo/cli/
|
||||
|
||||
.PHONY: run
|
||||
run: build ## Build and Execute the binary after the build step
|
||||
${BIN}
|
||||
.PHONY: build-api
|
||||
build-api:
|
||||
go build -o ${API_BIN} -ldflags="-X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'" ./cmd/doggo/api/
|
||||
|
||||
|
||||
.PHONY: build
|
||||
build: build-api build-cli
|
||||
|
||||
.PHONY: run-cli
|
||||
run-cli: build-cli ## Build and Execute the CLI binary after the build step.
|
||||
${CLI_BIN}
|
||||
|
||||
.PHONY: run-api
|
||||
run-api: build-api ## Build and Execute the API binary after the build step.
|
||||
${API_BIN}
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
go clean
|
||||
- rm -f ${BIN}
|
||||
- rm -rf ./bin/
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
golangci-lint run
|
||||
|
||||
.PHONY: fresh
|
||||
fresh: clean build
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue