3 ms·
I dug around my refs and I was about to recommend https://clig.dev/ https://clig.dev/, but I see you've already found it. It's a great little reference to have
by ezekg 4y ago
I dug around my refs and I was about to recommend https://clig.dev/ https://clig.dev/, but I see you've already found it. It's a great little reference to have when building a CLI. I typically read the code for other CLIs, particularly those written with the framework I'm using. The last framework I used was Cobra [0], and I studied how others did theirs:
- https://cs.github.com/?scopeName=All+repos&scope=&q=github.com%2Fspf13%2Fcobra+path%3A*.go+NOT+kubernetes https://cs.github.com/?scopeName=All+repos&scope=&q=github.c...
[0]: https://github.com/spf13/cobra https://github.com/spf13/cobra