mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
When creating new commands via `cobra add`, it is not possible to add commands with the same name to different parents. They will just overwrite each other. With this patch, the command's object identifier is templated `parentCommandCmd`, the `Use` field `command` and the file name `parent_command.go`. Fixes #1059 Fixes #1131 Signed-off-by: Carlos Marx <me@carlosmarx.com> |
||
---|---|---|
.. | ||
main.go |