apecloud / kbcli

The CLI for KubeBlocks.
GNU Affero General Public License v3.0
19 stars 14 forks source link

[BUG]Auto complete namespace error for dataprotection of alias #188

Closed fengluodb closed 4 months ago

fengluodb commented 10 months ago

dp is the alias for dataprotection cmd, but it can't auto complete namespace.

image image
ldming commented 10 months ago

What is the reason? Do other commands have this issue?

fengluodb commented 10 months ago

What is the reason? Do other commands have this issue?

The other commands also have this issue, such as clusterdefinition and clusterversion command.

image image image image
fengluodb commented 10 months ago

I think the auto completion isn't userful for the command's alis. I don't know the reason now. I think it should the cobra's issue, I will reaserch it.

https://github.com/apecloud/kbcli/blob/f26f982a39693c0ef8ea3192d552fb4f25532e84/pkg/cmd/cli.go#L264-L285

github-actions[bot] commented 9 months ago

This issue has been marked as stale because it has been open for 30 days with no activity