Ramilito / kubesess

Kubectl plugin managing sessions
MIT License
205 stars 5 forks source link

No interactive select with `kc` command #28

Open aslafy-z opened 2 years ago

aslafy-z commented 2 years ago

Describe the bug

To Reproduce

  1. Install with given install steps.
  2. Run kc
  3. The context list shows up as a list, the interactive panel is not interactive.

Expected behavior Shows the fzf alternative

Screenshots

$ kc
Possible contexts are:
azure-1
azure-2
azure-3
azure-4
azure-5
azure-6
azure-7
azure-8

Desktop (please complete the following information):

Ramilito commented 2 years ago

Oh my, you can't use arrows or fuzzy finding at all? How about completion, do you get any suggestions on tab?

aslafy-z commented 2 years ago

I forgot to say that using kubesess context directly works! I have no completion for the KC command. Also, when using kubesess context and quitting with Ctrl+C, my prompt comes back without the cursor.

Ramilito commented 2 years ago

Great catch on the cursor there, dunno how I missed that since I use ctrl-c quite often! Found a fix for that and created a separate issue for it as well #31

Regarding your other issue, I kind of feel the error should be in the script.

Could be that I was missing the shebang at the top that is making the script run a different interpreter. Could you try to add #!/bin/bash at the top of the kubesess.sh file and see if that solves it. The file should be located at: $HOME/.kube/kubesess

Ramilito commented 2 years ago

@aslafy-z Added shebang to the latest release, it's something we should have there even if it doesn't fix your issue.

But would love it if you could try the latest release out and see if the shebang solved it. It also has a new select plugin!

Ramilito commented 1 year ago

@aslafy-z Did your issue get fixed?