2025-02-15 11:43:22 +01:00
|
|
|
_choose:
|
|
|
|
just --choose
|
|
|
|
|
|
|
|
lint:
|
|
|
|
-gdlint .
|
2025-03-10 13:25:09 +01:00
|
|
|
-gdformat .
|
2025-02-15 11:43:22 +01:00
|
|
|
|
2025-03-13 04:22:29 +01:00
|
|
|
api_version := "v0.0.0-rc.8"
|
2025-02-15 11:43:22 +01:00
|
|
|
api_location := "scripts/api-client"
|
|
|
|
generate:
|
|
|
|
#!/bin/sh
|
|
|
|
API_URL="https://git.euph.dev/TowerDefence/Server/releases/download/{{ api_version }}/api.yml"
|
|
|
|
rm -rf {{ api_location }}
|
|
|
|
mkdir -p {{ api_location }}
|
|
|
|
npx --yes @openapitools/openapi-generator-cli \
|
|
|
|
generate \
|
|
|
|
-g gdscript \
|
|
|
|
-i "$API_URL" \
|
|
|
|
-o {{ api_location }} \
|
|
|
|
-t .api-template
|