File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1+ .idea /
Original file line number Diff line number Diff line change 11#! /bin/bash
2+ set -euo pipefail
3+ IFS=$' \n\t '
24
35openapi_python_client_version=$1
46openapi_file_path=$2
57openapi_url=$3
68config_file_path=$4
79
810if [[ " $openapi_python_client_version " != " NOT_SPECIFIED" ]]; then
9- version_arg=" --spec openapi-python-client==${openapi_python_client_version} "
11+ version_arg=" openapi-python-client==${openapi_python_client_version} "
1012else
11- version_arg=" "
13+ version_arg=" openapi-python-client "
1214fi
1315
1416if [[ " $config_file_path " != " NOT_SPECIFIED" ]]; then
15- config_arg=" --config ${config_file_path} "
17+ config_arg=" --config= ${config_file_path} "
1618else
1719 config_arg=" "
1820fi
1921
20- openapi_document_path_or_url_arg=" --path ${openapi_file_path} "
22+ openapi_document_path_or_url_arg=" --path= ${openapi_file_path} "
2123if [[ " $openapi_url " != " NOT_SPECIFIED" ]]; then
22- openapi_document_path_or_url_arg=" --url ${openapi_url} "
24+ openapi_document_path_or_url_arg=" --url= ${openapi_url} "
2325fi
2426
25- pipx run ${version_arg} openapi-python-client generate ${config_arg} ${openapi_document_path_or_url_arg}
27+ pipx install " ${version_arg} " --include-deps
28+ openapi-python-client generate ${config_arg} ${openapi_document_path_or_url_arg}
You can’t perform that action at this time.
0 commit comments