danielgtaylor / openapi-cli-generator

Generate a CLI from an OpenAPI 3 specification
MIT License
179 stars 49 forks source link

Add support for CLI command groups #32

Closed falzm closed 3 years ago

falzm commented 4 years ago

Here is a contribution that I think might be useful to more than just me: when dealing with lots of commands that, oftentimes most of them can be logically grouped together and organized as a tree of commands, like most well known CLIs do (docker, terraform etc.).

This implementation is easy to use and doesn't add a lot of code to the existing codebase, but feel free to challenge it if you feel it's warranted. Also, English is not my native language so I might have made mistakes in the documentation, please correct or reword things as you see fit :)

pyr commented 4 years ago

Any interest in this @danielgtaylor ?

falzm commented 4 years ago

Hi @danielgtaylor, any chance to see this PR merged soon?

falzm commented 4 years ago

@danielgtaylor while you're there, can I inquire about #34 too? 🙏

falzm commented 4 years ago

Also, I tried to update the bindata.go file but it seems like the tools used for that have quite evolved over the last time they've been used in this project, and produce quite different output so I'd prefer you have a look at this if you accept this PR.

falzm commented 3 years ago

This feature has been implemented in our fork: https://github.com/exoscale/openapi-cli-generator