Skip to content

Commit

Permalink
Rename main file to sound relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
bulatzamilov committed May 19, 2021
1 parent 6b01c93 commit 55e2b82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```
File renamed without changes.

0 comments on commit 55e2b82

Please sign in to comment.