vmware-archive / dispatch

Dispatch is a framework for deploying and managing serverless style applications.
http://dispatchframework.io
Apache License 2.0
532 stars 58 forks source link

Use StringSlice instead of StringArray in API CLI #772

Closed kars7e closed 5 years ago

kars7e commented 5 years ago

StringSlice allows comma separated values in addition to specifying flag multiple times, so commands like:

dispatch create api --method GET,POST

and

dispatch create api --method GET --method POST

will both work properly.

Also remove redundant "default: value" from description (it's being added by cobra anyway).