From 4d088c9354c17c58478cf121349a314b4e0dd322 Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Wed, 8 Jul 2026 01:06:20 +0200 Subject: set up and add sync package --- Taskfile.go.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Taskfile.go.yaml (limited to 'Taskfile.go.yaml') diff --git a/Taskfile.go.yaml b/Taskfile.go.yaml new file mode 100644 index 0000000..495aa59 --- /dev/null +++ b/Taskfile.go.yaml @@ -0,0 +1,30 @@ +# yaml-language-server: $schema=https://taskfile.dev/schema.json +version: "3" + +tasks: + test: + desc: run go tests + cmd: go test -v ./... + + test:coverage: + desc: run go tests + cmds: + - cmd: go test -v -coverprofile=tmp/cover.out ./... + - cmd: go tool cover -html=tmp/cover.out -o=tmp/cover.html + - cmd: xdg-open tmp/cover.html + + docs: + desc: open autogenerated code documentation + cmd: go tool pkgsite -open + + lint: + desc: run various linters + cmds: + - cmd: golangci-lint version + - cmd: golangci-lint run + + lint:fix: + desc: run various linters + cmds: + - cmd: golangci-lint version + - cmd: golangci-lint run --fix -- cgit v1.2.3