Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't create cmd and subcmd with same name, it will be overwrited? #93

Open
yushanjin opened this issue Aug 17, 2023 · 1 comment
Open

Comments

@yushanjin
Copy link

yushanjin commented Aug 17, 2023

e.g:
run cobra-cli add get, it will generate cmd/get.go
run cobra-cli add config, it will generate cmd/config.go
run cobra-cli add get -p 'configCmd', it will also generate cmd/get.go

the thrid command will overwrite cmd/get.go

finally, we can't have 'app get ' and 'app config get ' two commands at the same time.

@caozhuozi
Copy link

This is a common occurrence in the CLI development process. but still no solution.

related issues:
spf13/cobra#1131
spf13/cobra#1059

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants