#812·krew

Proposal: Installing an additional executable for plugin's completion script

Author: predatorrayCreated Nov 8, 2022Updated Oct 22, 2023
Labelslifecycle/frozen

Hi there, I am the maintainer of a krew plugin. Kubectl recently released a new feature to support shell completion for plugins in its latest alpha release v1.26.0-alpha.3. It requires an additional executable named kubectl_complete-<pluginName> present on $PATH.

As discussed in the pull request, krew does not provide a way to deliver this separate executable because bin: in the manifest yaml only expects one parameter. As a result, although I have implemented the completion script and managed to publish it to a homebrew tap simply by adding another bin.install (see: predatorray/homebrew-brew#5), I am still not able to release this feature to the users using krew.

I am wondering do we have any plan to support this feature, for example, by supporting multiple parameters under bin: or providing another parameter called completion?