As a developer I would like to use native zsh completion instead of the bash-compatibility one for making it easier to maintain.
Detailed Description
The current zsh completion of clusterctl is achieved by replacing some of the bash completions. Only a limited number of developers can maintain it because it is difficult to understand how it works.
Since cobra has supported native zsh completion since v1.1, we can replace it with this and it will be much easier to maintain. In addition, we will be ready to provide complements to other shells such as fish in the future.
Anything else you would like to add:
The native zsh completion provided by cobra does not support the use of completion in the following method:
source <(clusterctl completion zsh)
Instead, we should do the following. clusterctl completion's help message suggests the above method is available and will require the user to make changes.
User Story
As a developer I would like to use native zsh completion instead of the bash-compatibility one for making it easier to maintain.
Detailed Description
The current zsh completion of clusterctl is achieved by replacing some of the bash completions. Only a limited number of developers can maintain it because it is difficult to understand how it works.
Since cobra has supported native zsh completion since v1.1, we can replace it with this and it will be much easier to maintain. In addition, we will be ready to provide complements to other shells such as fish in the future.
Anything else you would like to add:
The native zsh completion provided by cobra does not support the use of completion in the following method:
Instead, we should do the following. clusterctl completion's help message suggests the above method is available and will require the user to make changes.
/kind feature /area clusterctl