I would love to use cobra add to create nested commands, for example:
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.
I would love to use
cobra addto create nested commands, for example:Cobra would then see that there are multiple arguments, create a directory called
dbif it doesn't exist and a command file inside of it calledmigrate.go. It would also create another file either inside ofdbor at the same directory level calleddb.goorroot.gothat will simply create adbCommandso that nested commands can be added to it. I can submit a PR for this after my existing PR is resolved. Thanks.