2121 DEPS_COMPOSE_FILE : ./.cicd/local/docker-compose.yaml
2222 DOCKER_IMAGE_NAME : database-gateway
2323 GO_ENTRYPOINT : ./cmd/gateway
24+ TOOLSET :
" go run github.com/kazhuravlev/toolset/cmd/[email protected] " 2425 GIT_TAG :
2526 sh : " gt t l -f tag"
2627
@@ -53,21 +54,21 @@ tasks:
5354 tools:install :
5455 cmds :
5556 - echo '>>> Run install tools'
56- - toolset sync
57+ - " {{ .TOOLSET }} sync"
5758
5859 lint :
5960 desc : Run static analysis
6061 cmds :
6162 - echo '>>> Run lint'
62- - toolset run golangci-lint run
63+ - " {{ .TOOLSET }} run golangci-lint run"
6364
6465 fmt :
6566 desc : Safe formatting codebase
6667 cmds :
6768 - echo ">>> Run Code Formatter"
6869 - go fmt $(go list ./...)
69- - toolset run gofumpt -l -w .
70- - toolset run goimports -d -w $(find . -type f -name '*.go' -not -path './.cicd/*')
70+ - " {{ .TOOLSET }} run gofumpt -l -w ."
71+ - " {{ .TOOLSET }} run goimports -d -w $(find . -type f -name '*.go' -not -path './.cicd/*')"
7172
7273 migrations:new :
7374 desc : Create new migration
8485 cmds :
8586 - task : tools:install
8687 - echo ">>> Run lint"
87- - toolset run golangci-lint run
88+ - " {{ .TOOLSET }} run golangci-lint run"
8889
8990 generate :
9091 desc : Generate code
@@ -107,7 +108,7 @@ tasks:
107108
108109 generate:license :
109110 cmds :
110- - toolset run addlicense -f LICENSE_gplv3_header.txt .
111+ - " {{ .TOOLSET }} run addlicense -f LICENSE_gplv3_header.txt ."
111112
112113 generate:tailwind :
113114 dir : ' ./internal/facade'
@@ -125,7 +126,7 @@ tasks:
125126 dir : ' ./internal/facade/templates'
126127 cmds :
127128 - echo ">>> Templ"
128- - toolset run templ generate
129+ - " {{ .TOOLSET }} run templ generate"
129130
130131 check :
131132 desc : Run all project checks
0 commit comments