run through formatter

This commit is contained in:
Onyx and Iris 2025-02-07 23:15:05 +00:00
parent 3afc5ee66c
commit db497a017b

View File

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