default:
  @just --choose

test:
    go test -v ./...

lint:
    go vet ./...
    staticcheck ./...
    revive ./...

gofmt:
    gofmt -l .
    @test -z $(gofmt -l .)

build:
    go build

upgrade-deps:
    go get -u ./...
    go mod tidy

@run:
    go run . --config ./devconfig.scfg

@curl:
    curl --user "user:pass" -X 'POST' \
        '127.0.0.1:8080' \
        -H 'Content-Type: application/json' \
        -d @contrib/test_payload.json