Improve folder layout for cobra generator #201
Labels
area/cobra-command
Core `cobra.Command` implementations
kind/feature
A feature request for cobra; new or enhanced behavior
It would be good to let the cobra generator to create subfolders under cmd if the added command is not a child of RootCmd. This leads to clear code organisation.
I have the commands
appName upload
appName benchmark upload
and with cobra they go to the same file: upload.go
A good approach would be:
cmd/upload.go
cmd/benchmark.go
cmd/benchmark/upload.go
BTW, thanks for such valuable tool!
The text was updated successfully, but these errors were encountered: