ahmetb/kubectx ? reverse-engineered prompt

Reverse engineered prompt

Build me a small command line tool for working with Kubernetes more easily, basically the kind of thing that lets me switch between clusters and namespaces without typing long kubectl context names every time.

I want one command for changing the active cluster, another for changing the active namespace, and it should remember the previous one so I can jump back quickly. It would be great if I can rename a context too, and open a shell that is limited to just one context, with an option to make it read only so I do not accidentally change anything.

If possible, add fuzzy search so I can pick from a list interactively when I have fzf installed, and include tab completion for the common shells. Make it feel polished and simple to use from the terminal, with clear output messages and sensible defaults. If you need to look up current docs online for kubectl or shell completion details, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab