danielfoehrKn / kubeswitch

The kubectx for operators.
https://danielfoehrkn.medium.com/the-case-of-kubeswitch-aff4b6a04ae7
Apache License 2.0
832 stars 80 forks source link

How can I instruct `switch` to output the list of the context without triggering the fuzzy finder feature? #142

Closed karatedog closed 3 weeks ago

karatedog commented 4 weeks ago

I do not want to disable the fuzzy finder feature I just want switch to output a single list of all contexts. I have a few scripts that can work on multiple clusters using parallel however that needs input parameters and previously I used kubectx plus some grep to generate that input list. However switch does not recognize if its output is piped into another tool and turns on the search window. Thanks.

danielfoehrKn commented 4 weeks ago

Hey, have you checked switch list-contexts?

karatedog commented 3 weeks ago

I have to retrain my reading skills while looking at man manuals. This is exactly what I needed, thanks.