kubectl-prompt_decorator

command module
v0.0.0-...-4299c1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2020 License: MIT Imports: 5 Imported by: 0

README

kubectl prompt-decorator

License Go Report Card

Prints your current context and default namespace, useful for adding to your shell's $PROMPT

Usage

On windows this requires Kubectl 1.16+ if you want to install the binary as a kubectl plugin.

Install the proper kubectl-prompt_decorator binary for your platform somewhere on your $PATH. You can now kubectl prompt-decorator!

$ which kubectl-prompt_decorator
~/.bin/kubectl-prompt_decorator
$ kubectl prompt-decorator
[☸ docker-desktop:default]

Building

You need go 1.13+. Build the binary for your platform:

# linux / unix
$ go build -o kubectl-prompt_decorator main.go

# windows
$ go build -o kubectl-prompt_decorator.exe main.go

Then place kubectl-prompt_decorator on your $PATH.

TODO

  • Publish binaries as GitHub Releases
  • Publish as a krew plugin
  • Better theme support (currently only the default theme is available)

License

This plugin is published under the MIT License. See ./LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL