c-bata / kube-prompt

An interactive kubernetes client featuring auto-complete.
MIT License
1.79k stars 134 forks source link

Support for completion of "edit <resource>", and "config use-context <context>" #3

Closed solcates closed 6 years ago

solcates commented 7 years ago

First off, great tool, and i like the modular framework of go-prompt.

This PR adds completion for "edit ", as well as easy switching of context from cluster to cluster via "config use-context ".

Hopefully someone else finds this useful, as i tend to live in a terminal, and switching from environment to environment for rapid management is fantastic.

c-bata commented 7 years ago

Thanks. I'll try this changes later.

c-bata commented 7 years ago

This changes definitely seems useful. But I think if client-go(kubernetes) provides the function to get cluster list, I think kube-prompt should use it . So now I read the implementation of kubectl. just a minute please.

c-bata commented 6 years ago

I merged this and added a little bit refactor changes. Thanks! This feature is convenient. https://github.com/c-bata/kube-prompt/commit/6f52ee1f1635ff2ebc74c85f212767e77ed7c9ba