onshape-public / onshape-clients

All Onshape clients for interacting with the Onshape API.
MIT License
34 stars 29 forks source link

build(cli): adds generate command and go client support #23

Closed eak24 closed 4 years ago

eak24 commented 4 years ago

a bunch of small changes to how the cli is put together that prioritize easily adding new clients. Also made the testing terser as well as more comprehensive. Also adds dry-run command to the cli. Example input and output of the generate command:

 $onshape-clients --dry-run generate
============= generateing the python client. ===============
============= Would run command "openapi-generator-cli generate -i ./openapi.json --skip-validate-spec -g python-experimental -o /Users/ekeller/onshape/onshape-clients/python -c /Users/ekeller/onshape/onshape-clients/python/openapi_config.json" ===============
============= generateing the go client. ===============
============= Would run command "openapi-generator-cli generate -i ./openapi.json --skip-validate-spec -g go -o /Users/ekeller/onshape/onshape-clients/go -c /Users/ekeller/onshape/onshape-clients/go/openapi_config.json" ===============
eak24 commented 4 years ago

A lot of python updates to models, etc... and a new go client.