danielfoehrKn / kubeswitch

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

Pattern matching for `switch list-contexts` and `exec` is too simplistic #140

Open towolf opened 1 month ago

towolf commented 1 month ago

The used pattern matching package from https://github.com/becheran/wildmatch-go is too simplistic and doesn't allow flexible matching of contexts.

Either just go regex or find a better matching library?

Something that allows brace expansion {prod,staging} and optional prefixes would be good.

Or just go with regex.