Minikube: ZSH completion

Created on 6 Aug 2017  路  3Comments  路  Source: kubernetes/minikube

Is this a BUG REPORT or FEATURE REQUEST? (choose one): FEATURE REQUEST

Minikube version (use minikube version): v0.20.0

Environment:

  • OS (e.g. from /etc/os-release): 16.04.3 LTS (Xenial Xerus)
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): virtualbox
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION): minikube-v0.20.0.iso
  • Install tools: ZSH

Cobra now has command hiearchy completion for ZSH in master. See spf13/cobra/pull/497
Even though it is still missing more advanced stuff, basic command compeletion for ZSH would be very useful.

kinfeature

Most helpful comment

It's in master, will be in the next release.
Related, easy way to enable the completion: https://github.com/robbyrussell/oh-my-zsh/pull/6436

All 3 comments

Yup this would be cool. Even though we use cobra in minikube, we track the version from upstream kubernetes . So we'll have to wait until its updated upstream, so we avoid vendor merge conflicts all the time.

Minikube ZSH completion is already implemented in https://github.com/zchee/go-zsh-completions/blob/master/src/_minikube, but it would have been useful to bring that work into Minikube itself.

It's in master, will be in the next release.
Related, easy way to enable the completion: https://github.com/robbyrussell/oh-my-zsh/pull/6436

Was this page helpful?
0 / 5 - 0 ratings