yh

command module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

README

yh - YAML Highlighter

A dummy YAML syntax highlighter that brings colours where only jq could.

This project starts with the author's incapacity to give up on the absence of colours while playing with kubernetes cli and YAML output (kubectl get something -o yaml) as wouldn't happen with JSON and jq.

Unable to find a simple YAML highlighter he could throw some content to, with little to no respect expectation, and full of inspiration from his recent Go training, he decided to write one from scratch.

Comparison with or without yh

How to use

As easy as you secretly hoped

kubectl get pod alpine -o yaml | yh

Other commands:

  • yh help
  • yh version

Download & installation

Make your life more colourful from here:

Linux or MacOS

Unzip

unzip yh-<os>-<arch>.zip

Move the binary somewhere in your PATH

mv yh /usr/local/bin/

Windows

Like above but with your mouse

Work in progress

This project is still a work in progress. It essentially works but more improvements and docs will follow.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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