From 55e2b82677dce17378882007601e8c7367053a4a Mon Sep 17 00:00:00 2001 From: Bulat Zamilov Date: Wed, 19 May 2021 18:25:02 +0300 Subject: [PATCH] Rename main file to sound relevant --- README.md | 16 ++++++++-------- kubectx_dialogue.py => kctx.py | 0 2 files changed, 8 insertions(+), 8 deletions(-) rename kubectx_dialogue.py => kctx.py (100%) diff --git a/README.md b/README.md index 7016e48..863787d 100644 --- a/README.md +++ b/README.md @@ -7,21 +7,21 @@ You need to have kubectx tool installed (https://github.com/ahmetb/kubectx) and Also, Python 3.6+ required ## Usage -Make sure you may run script granting executable bit to it by `chmod +x kubectx_dialogue.py`. -Then run it with `./kubectx_dialogue.py` +Make sure you may run script granting executable bit to it by `chmod +x kctx.py`. +Then run it with `./kctx.py` or `kctx` -You may link it to eg /usr/local/bin/kubectx_wrapper and then check if this is in your PATH by `which kubectx_wrapper` but please don't rename it to kubectx because it will conflict with the existing kubectx tool. You may rename it to eg kctx. -When you link it to /usr/local/bin/kubectx_wrapper and /usr/local/bin is in your path you may just run kubectx_wrapper command +You may link it to eg /usr/local/bin/kctx and then check if this is in your PATH by `which kctx` but please don't rename it to kubectx because it will conflict with the existing kubectx tool. You may rename it to eg kctx. +When you link it to /usr/local/bin/kctx and /usr/local/bin is in your path you may just run kctx command ## Help -You run kubectx_wrapper, choose the context you want to switch to by entering its number. Voila~ you have changed current context +You run kctx, choose the context you want to switch to by entering its number. Voila~ you have changed current context ``` -~/local/devops/kubectx_wrapper on  main! +~/local/devops/kctx on  main! $ kubectx -c error: current-context is not set -~/local/devops/kubectx_wrapper on  main! +~/local/devops/kctx on  main! $ kctx Current context is not set 1: test1 @@ -30,7 +30,7 @@ Current context is not set Please enter the number of corresponding context to switch to: 3 Switched to context "docker-desktop". -~/local/devops/kubectx_wrapper on  main! +~/local/devops/kctx on  main! $ kubectx -c docker-desktop ``` diff --git a/kubectx_dialogue.py b/kctx.py similarity index 100% rename from kubectx_dialogue.py rename to kctx.py