Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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