Skip to content

Commit

Permalink
Add justfile to easily generate new rlink_client
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsan committed May 13, 2023
1 parent e55cdea commit 843df23
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vscode/settings.json
rlink_client_python_old
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Relic Link API-Client generated from OpenAPI
1. Rename the folder `rlink_client_python` to `rlink_client_python_old`.

2. Run
`openapi-generator-cli.cmd generate -g python -o rlink_client_python -i openapi.yaml --package-name rlink_client --packageVersion <open_api spec version>`.
`openapi-generator-cli.cmd generate -g python -o rlink_client_python -i openapi.yaml --package-name rlink_client --packageVersion <python package version>`.

3. Copy over `rlink_client_python_old/pyproject.toml` to `rlink_client_python/pyproject.toml`.

Expand Down
6 changes: 6 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]

generate:
Rename-Item -Path "rlink_client_python" -NewName "rlink_client_python_old"
openapi-generator-cli.cmd generate -g python -o rlink_client_python -i openapi.yaml --package-name rlink_client
Copy-Item -Path "rlink_client_python_old/pyproject.toml" -Destination "rlink_client_python/pyproject.toml"

0 comments on commit 843df23

Please sign in to comment.