Closed
Description
I would love to use cobra add
to create nested commands, for example:
cobra add db migrate
Cobra would then see that there are multiple arguments, create a directory called db
if it doesn't exist and a command file inside of it called migrate.go
. It would also create another file either inside of db
or at the same directory level called db.go
or root.go
that will simply create a dbCommand
so that nested commands can be added to it. I can submit a PR for this after my existing PR is resolved. Thanks.