Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Consider changing `cmd/` directory as cobra command recommendation #641
Hello @spf13 and thank you for your many great contributions. I contributed to Hugo some time ago and use it for several sites!
The typical go pattern is to use the
Please consider recommending a more compatible file structure, such as this one that nests cobra commands with their relevant binaries:
Or perhaps this layout, which organizes the cobra command packages as packages:
The goal here is to enable the typical
As I understand it, cobra doesn't require anything in particular, so this is a simple documentation change to the README. Is that right?
Or is this also related to the code generator.
For example, we use cobra with package directories per-subcommand here: https://github.com/ohsu-comp-bio/funnel/tree/master/cmd