ahmetb / kubectx

Faster way to switch between clusters and namespaces in kubectl
https://kubectx.dev
Apache License 2.0
17.58k stars 1.26k forks source link

Feature request: add PowerShell tab-completion #317

Open NileshGule opened 3 years ago

NileshGule commented 3 years ago

I appreciate the fuzzy search feature kubectx. Please enable the support for auto-complete or tab-completion for delete command when using kubectx -d

ahmetb commented 3 years ago

This already should be working. Which version you're on and how did you install it?

NileshGule commented 3 years ago

@ahmetb I am currently running 0.9.4 on Windows I installed it using the Chocolatey package

image

ahmetb commented 3 years ago

Which shell is that?

NileshGule commented 3 years ago

I am running Windows Terminal with Powershell

ahmetb commented 3 years ago

Do we have any other shell completion for PowerShell that makes you ask one specifically for -d? :)

I don't think we support shell completion on Windows terminals yet.

NileshGule commented 3 years ago

I have the shell completion for Powershell itself https://youtu.be/I0iIZe0dUNw

Since we already have the names of the cluster context in the case of kubectx and namespace names for kubens it would be great to have the tab completion support.

ahmetb commented 3 years ago

Powershell itself might support completion scripts, but we don't have anything implemented for PowerShell as you can see in the README. Completions are limited to bash/fish/zsh shells at the moment.

I am changing the title to reflect what you actually wanted to say. :)

NileshGule commented 3 years ago

Thanks @ahmetb for accepting the feature request. 👍🙏