From 5b0be377ff7731bf4e5402afe14df2121031ed90 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 10 Feb 2026 10:58:50 +0000 Subject: feat: Initial commit --- Taskfile.yaml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Taskfile.yaml (limited to 'Taskfile.yaml') diff --git a/Taskfile.yaml b/Taskfile.yaml new file mode 100644 index 0000000..e4481e8 --- /dev/null +++ b/Taskfile.yaml @@ -0,0 +1,47 @@ +version: "3" + +vars: + BINARY: deppa + +tasks: + default: + desc: Build the application + cmds: + - task: build + + build: + desc: Build the binary with optimisations + cmds: + - go build -ldflags="-s -w" -o {{.BINARY}} . + sources: + - ./**/*.go + generates: + - ./{{.BINARY}} + + run: + desc: Build and run the application + deps: [build] + cmds: + - ./{{.BINARY}} + + install: + desc: Install the binary to GOPATH/bin + deps: [build] + cmds: + - cp {{.BINARY}} ${GOPATH:-~/go}/bin/{{.BINARY}} + + clean: + desc: Remove build artifacts + cmds: + - rm -f {{.BINARY}} + - go clean + + fmt: + desc: Format code + cmds: + - iku -w . || go fmt ./... + + lint: + desc: Run linter + cmds: + - golangci-lint run -- cgit v1.2.3