Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onatm/kx
Interactively switch between kubernetes contexts without any external dependencies
https://github.com/onatm/kx
kubectl-plugins kubernetes kubernetes-context kubernetes-contexts rust
Last synced: 10 days ago
JSON representation
Interactively switch between kubernetes contexts without any external dependencies
- Host: GitHub
- URL: https://github.com/onatm/kx
- Owner: onatm
- License: mit
- Created: 2020-01-31T16:47:45.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T23:00:08.000Z (6 months ago)
- Last Synced: 2024-10-13T02:13:14.270Z (24 days ago)
- Topics: kubectl-plugins, kubernetes, kubernetes-context, kubernetes-contexts, rust
- Language: Rust
- Homepage:
- Size: 103 KB
- Stars: 42
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kx
`kx` is a utility to switch interactively between kubernetes contexts without any external dependencies and bash witchcraft. Written in Rust :crab:
![Build](https://github.com/onatm/kx/workflows/Build/badge.svg)
## Installation
### From binary
You can directly [download the kx executable](https://github.com/onatm/kx/releases).
### Install from crates.io
```sh
cargo install kx
```### Build Manually
Clone the repo and run:
```sh
cargo install --path .
```Alternatively, run:
```sh
cargo build --release
```then put the resulting `target/release/kx` executable on your PATH.
## Usage
```md
kx : list the contexts
kx : switch to context
kx -c, --current : show the current context name
kx -u, --unset : unset the current context
```## Todo
- [ ] Add tests
- [ ] `bash`/`zsh`/`fish` completions
- [ ] Use [crossterm](https://github.com/crossterm-rs/crossterm) based solution instead of [skim](https://github.com/lotabout/skim)
- [ ] Windows support