Skip to content

Commit 4d716d0

Browse files
committed
Update local make client-generate command
1 parent 54fd2eb commit 4d716d0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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
5258
client-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
5966
client-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

0 commit comments

Comments
 (0)