clusterctl completion: Use native zsh completion instead #4090
Labels
area/clusterctl
Issues or PRs related to clusterctl
kind/feature
Categorizes issue or PR as related to a new feature.
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Milestone
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
The text was updated successfully, but these errors were encountered: