File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ install:
1414 python scripts/prepare-readme.py
1515 poetry install
1616
17+ # # install-speakeasy-cli: download the speakeasy cli tool
18+ .PHONY : install-speakeasy-cli
19+ install-speakeasy-cli :
20+ curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh
21+
1722# ################
1823# Test and Lint #
1924# ################
@@ -48,16 +53,17 @@ lint:
4853# Speakeasy #
4954# ############
5055
56+ # # client-generate: Pull the openapi spec from the free hosted API and generate the SDK
5157.PHONY : client-generate
5258client-generate :
5359 wget -nv -q -O openapi.json https://api.unstructured.io/general/openapi.json
5460 speakeasy overlay validate -o ./overlay_client.yaml
5561 speakeasy overlay apply -s ./openapi.json -o ./overlay_client.yaml > ./openapi_client.json
5662 speakeasy generate sdk -s ./openapi_client.json -o ./ -l python
5763
64+ # # client-generate-local: Generate the SDK using a local copy of openapi.json
5865.PHONY : client-generate-local
5966client-generate-local :
60- wget -nv -q -O openapi.json http://localhost:5000/general/openapi.json
6167 speakeasy overlay validate -o ./overlay_client.yaml
6268 speakeasy overlay apply -s ./openapi.json -o ./overlay_client.yaml > ./openapi_client.json
6369 speakeasy generate sdk -s ./openapi_client.json -o ./ -l python
You can’t perform that action at this time.
0 commit comments