mirror of
https://github.com/spf13/cobra
synced 2025-05-05 21:07:24 +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> |
||
---|---|---|
.. | ||
testdata | ||
add.go | ||
add_test.go | ||
golden_test.go | ||
helpers.go | ||
helpers_test.go | ||
init.go | ||
init_test.go | ||
license_agpl.go | ||
license_apache_2.go | ||
license_bsd_clause_2.go | ||
license_bsd_clause_3.go | ||
license_gpl_2.go | ||
license_gpl_3.go | ||
license_lgpl.go | ||
license_mit.go | ||
licenses.go | ||
project.go | ||
project_test.go | ||
root.go |