spf13 / cobra-cli

Cobra CLI tool to generate applications and commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

yushanjin opened this issue · comments

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.

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

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