bergerx / kubectl-status

A kubectl plugin to print a human-friendly output that focuses on the status fields of the resources in kubernetes.
Apache License 2.0
108 stars 5 forks source link

enable kubectl shell completion when its available #296

Open bergerx opened 2 years ago

bergerx commented 2 years ago

Once https://github.com/kubernetes/kubernetes/pull/105867 is merged, we can start using shell completions as told here:

https://github.com/kubernetes/kubernetes/pull/105867/files#diff-75e0556ae8d72c53672f08704f4338792f13d108e34330e57075c09c9f37be02R147-R171

Similar issue from cert-manager: https://github.com/cert-manager/cert-manager/issues/4657

bergerx commented 1 year ago

This is now covered in https://github.com/kubernetes/enhancements/blob/master/keps/sig-cli/2379-kubectl-plugins/README.md#shell-completion-support

bergerx commented 3 months ago

The completion on flags is working out of the box for newer kubectl versions.

We should also enable completion for positional arguments as in kubectl get.