OpenAPI 3.0 contract (api/openapi.yaml) with oapi-codegen generated server, client and models; preload-api (Jellyfin lookup, SQLite queue, bearer roles) runs at home, preload-agent runs on the VPS and fills the rclone cache. mise manages Go 1.27.3 and oapi-codegen 2.8.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GUebqghNwNssAZuWTxUq1y
22 lines
498 B
TOML
22 lines
498 B
TOML
[tools]
|
|
go = "1.27.3"
|
|
"go:github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen" = "2.8.2"
|
|
|
|
[env]
|
|
CGO_ENABLED = "0"
|
|
|
|
[tasks.generate]
|
|
description = "Generate Go server, client and models from api/openapi.yaml"
|
|
run = "oapi-codegen -config api/oapi-codegen.yaml api/openapi.yaml"
|
|
|
|
[tasks.build]
|
|
description = "Build both binaries into ./bin"
|
|
depends = ["generate"]
|
|
run = "go build -trimpath -ldflags='-s -w' -o bin/ ./cmd/..."
|
|
|
|
[tasks.test]
|
|
run = "go test ./..."
|
|
|
|
[tasks.vet]
|
|
run = "go vet ./..."
|