Client/Justfile

21 lines
477 B
Makefile
Raw Normal View History

2025-02-15 11:43:22 +01:00
_choose:
just --choose
lint:
-gdlint .
-gdformat -d .
api_version := "v0.0.0-rc.4"
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 @openapitools/openapi-generator-cli \
generate \
-g gdscript \
-i "$API_URL" \
-o {{ api_location }} \
-t .api-template