-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (33 loc) · 848 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
BINARY_NAME=main.out
init:
./thegang/get-tools.sh
./thegang/project-setup.sh
compile:
go build -o ${BINARY_NAME} main.go
run:
go build -o ${BINARY_NAME} main.go
./${BINARY_NAME} server
seed:
go build -o ${BINARY_NAME} main.go
./${BINARY_NAME} seed
clean:
go clean
rm ${BINARY_NAME}
test:
go test -cover ./internal/core/controllers ./internal/core/services -coverprofile=coverage.out -v -test.v; go tool cover --html=./coverage.out;
lzl:
golangci-lint run --fix
lzm:
go generate ./internal/core/services ./internal/core/vaults
wire:
cd ./internal/injection && wire
export-table:
./thegang/manual/export_schema.sh
mig-up:
go build -o ${BINARY_NAME} main.go
./${BINARY_NAME} duck up
mig-down:
go build -o ${BINARY_NAME} main.go
./${BINARY_NAME} duck down
gen:
cd openapi && oapi-codegen --config=config.yaml ./spec.yaml