kx

Crates.iokx
lib.rskx
version1.3.0
sourcesrc
created_at2018-12-29 21:29:15.964421
updated_at2023-02-25 21:46:29.837336
descriptionInteractively switch between kubernetes contexts without any external dependencies
homepagehttps://github.com/onatm/kx
repositoryhttps://github.com/onatm/kx
max_upload_size
id104458
size43,236
Onat Yiğit Mercan (onatm)

documentation

https://github.com/onatm/kx

README

kx

kx is a utility to switch interactively between kubernetes contexts without any external dependencies and bash witchcraft. Written in Rust :crab:

Build

Installation

From binary

You can directly download the kx executable.

Install from crates.io

cargo install kx

Build Manually

Clone the repo and run:

cargo install --path .

Alternatively, run:

cargo build --release

then put the resulting target/release/kx executable on your PATH.

Usage

kx               : list the contexts
kx <NAME>        : switch to context <NAME>
kx -c, --current : show the current context name
kx -u, --unset   : unset the current context

Todo

  • Add tests
  • bash/zsh/fish completions
  • Use crossterm based solution instead of skim
  • Windows support
Commit count: 43

cargo fmt