-
Notifications
You must be signed in to change notification settings - Fork 4
/
code-gen.sh
executable file
·27 lines (22 loc) · 1.12 KB
/
code-gen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
GENERATOR_VERSION=${GENERATOR_VERSION:-v5.1.1}
rm -rf src/docs/ src/test/ src/igtcloud/client/services/auth src/igtcloud/client/services/entities src/igtcloud/client/services/action
docker run --user $(id -u):$(id -g) --rm -v $(pwd):/local openapitools/openapi-generator-cli:${GENERATOR_VERSION:-latest} generate \
-i /local/openapi/entities.json \
-g python \
-o /local/src \
-t /local/templates \
--package-name igtcloud.client.services.entities \
--http-user-agent 'igtcloud-python-client'
docker run --user $(id -u):$(id -g) --rm -v $(pwd):/local openapitools/openapi-generator-cli:${GENERATOR_VERSION:-latest} generate \
-i /local/openapi/auth.json \
-g python \
-o /local/src \
--package-name igtcloud.client.services.auth \
--http-user-agent 'igtcloud-python-client'
docker run --user $(id -u):$(id -g) --rm -v $(pwd):/local openapitools/openapi-generator-cli:${GENERATOR_VERSION:-latest} generate \
-i /local/openapi/action.json \
-g python \
-o /local/src \
--package-name igtcloud.client.services.action \
--http-user-agent 'igtcloud-python-client'