-
Notifications
You must be signed in to change notification settings - Fork 2
/
update-clients.sh
executable file
·18 lines (15 loc) · 1.04 KB
/
update-clients.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
version=$(<VERSION)
# python
docker run --net="host" --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \
-i http://localhost:8080/openapi.json -g python -o /local/clients/python --package-name multitranslateclient \
--git-user-id rekon-oss --git-repo-id multi-translate \
--additional-properties=packageVersion=$version,packageUrl=https://github.com/rekon-oss/multi-translate/clients/python
docker run --net="host" --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \
-i http://localhost:8080/openapi.json -g go -o /local/clients/go --package-name multitranslateclient \
--git-user-id rekon-oss --git-repo-id multi-translate/clients/go \
--additional-properties=packageVersion=$version
docker run --net="host" --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \
-i http://localhost:8080/openapi.json -g javascript -o /local/clients/js --package-name multitranslateclient \
--git-user-id rekon-oss --git-repo-id multi-translate \
--additional-properties=projectName=@rekon-oss/multi-translate