small refactor

This commit is contained in:
2026-04-21 06:00:03 +02:00
parent 4b62a9a64b
commit 26924a5c01
27 changed files with 2149 additions and 789 deletions
+21
View File
@@ -0,0 +1,21 @@
binary := if os() == "windows" { "pastebin.exe" } else { "pastebin" }
set windows-shell := ["powershell.exe", "-NoProfile", "-Command"]
default:
@just --list
build:
go build -o {{ binary }} .
test:
go test -v -coverprofile coverage.out ./...
cover: test
go tool cover -html coverage.out
clean:
{{ if os() == "windows" { "@if (Test-Path " + binary + ") { Remove-Item " + binary + " }; if (Test-Path coverage.out) { Remove-Item coverage.out }" } else { "rm -f " + binary + " coverage.out" } }}
run *args: build
{{ if os() == "windows" { ".\\" } else { "./" } }}{{ binary }} {{ args }}