replicatedhq/kots

CLI Completion is broken

Opened this issue · 0 comments

znd4 commented

b.c. the cobra code is still targeting kots, but the binary's being distributed as kubectl-kots, CLI completion doesn't work. Unfortunately, simply switching to kubectl-kots would still confuse users, b.c. completion for kubectl plugins is a whole thing, so it'd only fix kubectl-kots <tab>.

The best solution would be to actually implement kubectl kots <tab> completion by shipping a second kubectl_complete-kots binary that basically aliases to kubectl kots completion $* (if I'm understanding the kubectl plugin completion spec correctly)