2024-08-23 16:22:29 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
2024-12-18 14:22:21 +01:00
|
|
|
if [ -z "$1" ]; then
|
|
|
|
|
echo "No version supplied"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
2024-08-23 16:22:29 +02:00
|
|
|
openapi-generator-cli generate \
|
2024-12-18 14:22:21 +01:00
|
|
|
-t .openapi-generator/templates \
|
2024-08-23 16:22:29 +02:00
|
|
|
-g python \
|
|
|
|
|
-i codex.yaml \
|
2024-12-19 13:21:39 +01:00
|
|
|
--additional-properties="packageName=codex_api_client,projectName=codex-api-client,packageUrl=https://github.com/codex-storage/py-codex-api-client,packageVersion=$1" \
|
2024-12-18 14:22:21 +01:00
|
|
|
--git-repo-id py-codex-api-client --git-user-id codex-storage \
|
|
|
|
|
--http-user-agent py_codex_api_client
|