-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
area/cobra-commandCore `cobra.Command` implementationsCore `cobra.Command` implementationskind/featureA feature request for cobra; new or enhanced behaviorA feature request for cobra; new or enhanced behavior
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.
jtagcat
Metadata
Metadata
Assignees
Labels
area/cobra-commandCore `cobra.Command` implementationsCore `cobra.Command` implementationskind/featureA feature request for cobra; new or enhanced behaviorA feature request for cobra; new or enhanced behavior