Skip to content

Commit

Permalink
parameterize make command
Browse files Browse the repository at this point in the history
  • Loading branch information
myrho committed Jan 25, 2024
1 parent 4282c04 commit b5eff39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ generate-openapi-client:
-v "${PWD}:/build:Z" \
-v "${PWD}/templates:/templates:Z" \
openapitools/openapi-generator-cli:v5.2.1 \
generate -i "https://api.test.ikna.io/openapi.json" \
generate -i "$(GS_REST_SERVICE_URL)/openapi.json" \
-g python \
-t /templates \
-o /build \
Expand Down
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,16 +220,6 @@ Run the jupyter notebooks
This python package has been generated from [Graphsense's OpenAPI specification](https://api.test.ikna.io) hosted by [Iknaio Cryptoasset Analytics GmbH](https://ikna.io) using this command:

```
docker run --rm \
-v "${PWD}:/build" \
-v "${PWD}/templates:/templates" \
openapitools/openapi-generator-cli:v5.2.1 \
generate -i "https://api.test.ikna.io/openapi.json" \
-g python \
-t /templates \
-o /build \
--additional-properties=packageName=graphsense \
--additional-properties=projectName=graphsense-python
make GS_REST_SERVICE_URL="https://api.test.ikna.io" generate-openapi-client
```

12 changes: 1 addition & 11 deletions templates/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,6 @@ Please follow the [installation procedure](#installation--usage) and then run th
This python package has been generated from [Graphsense's OpenAPI specification]({{basePath}}) hosted by [Iknaio Cryptoasset Analytics GmbH](https://ikna.io) using this command:

```
docker run --rm \
-v "${PWD}:/build" \
-v "${PWD}/templates:/templates" \
openapitools/openapi-generator-cli:v5.2.1 \
generate -i "{{inputSpec}}" \
-g python \
-t /templates \
-o /build \
--additional-properties=packageName=graphsense \
--additional-properties=projectName=graphsense-python

make GS_REST_SERVICE_URL="{{basePath}}" generate-openapi-client
```

0 comments on commit b5eff39

Please sign in to comment.