run through formatter

This commit is contained in:
onyx-and-iris 2025-02-07 23:19:05 +00:00
parent db1c45a25b
commit c8fd7a3f22

View File

@ -12,40 +12,44 @@ vars:
tasks: tasks:
default: default:
desc: "Build the q3rcon-proxy project" desc: Build the q3rcon-proxy project
deps: [build] cmds:
- task: build
build: build:
desc: "Build the q3rcon-proxy project" desc: Build the q3rcon-proxy project
deps: [vet, build-windows, build-linux] deps: [vet]
cmds:
- task: build-windows
- task: build-linux
vet: vet:
desc: "Vet the code" desc: Vet the code
deps: [fmt] deps: [fmt]
cmds: cmds:
- go vet ./... - go vet ./...
fmt: fmt:
desc: "Fmt the code" desc: Fmt the code
cmds: cmds:
- go fmt ./... - go fmt ./...
build-windows: build-windows:
desc: "Build the q3rcon-proxy project for Windows" desc: Build the q3rcon-proxy project for Windows
cmds: cmds:
- GOOS=windows GOARCH=amd64 go build -o {{.WINDOWS}} -ldflags="-X main.Version={{.GIT_COMMIT}}" ./cmd/{{.PROGRAM}}/ - GOOS=windows GOARCH=amd64 go build -o {{.WINDOWS}} -ldflags="-X main.Version={{.GIT_COMMIT}}" ./cmd/{{.PROGRAM}}/
build-linux: build-linux:
desc: "Build the q3rcon-proxy project for Linux" desc: Build the q3rcon-proxy project for Linux
cmds: cmds:
- GOOS=linux GOARCH=amd64 go build -o {{.LINUX}} -ldflags="-X main.Version={{.GIT_COMMIT}}" ./cmd/{{.PROGRAM}}/ - GOOS=linux GOARCH=amd64 go build -o {{.LINUX}} -ldflags="-X main.Version={{.GIT_COMMIT}}" ./cmd/{{.PROGRAM}}/
test: test:
desc: "Run tests" desc: Run tests
cmds: cmds:
- go test ./... - go test ./...
clean: clean:
desc: "Clean the build artifacts" desc: Clean the build artifacts
cmds: cmds:
- '{{.SHELL}} rm -r {{.BIN_DIR}}' - '{{.SHELL}} rm -r {{.BIN_DIR}}'