Kubebuilder: Generate CLI completions for bash/zsh

Created on 2 Feb 2020  路  5Comments  路  Source: kubernetes-sigs/kubebuilder

The Kubebuilder CLI doesn't seem to provide bash or zsh completions similar to kubectl: kubebuilder completion bash
It should be straightforward enough to generate it via the cobra cmd helpers e.g GenBashCompletion().

I can submit a PR to add this in unless there's reasons not to, e.g potentially moving away from cobra CLI in the future, or if any of the incoming plugin and CLI work in #1290 would affect this (which doesn't seem like it would).

/kind feature

good first issue help wanted kinfeature prioritbacklog

Most helpful comment

Yep it's a pretty low priority feature but I've become somewhat used to autocomplete from some of the other CLI tools. I'll submit a PR hopefully soon.

All 5 comments

/cc @mengqiy

It's just because no one has asked for this and we have never prioritized it.
Feel free to submit a PR for bash/zsh completion support.

Yep it's a pretty low priority feature but I've become somewhat used to autocomplete from some of the other CLI tools. I'll submit a PR hopefully soon.

/assign

working in this.

Was this page helpful?
0 / 5 - 0 ratings