Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreazorzetto/yh
YAML syntax highlighter to bring colours to kubectl output
https://github.com/andreazorzetto/yh
Last synced: 2 months ago
JSON representation
YAML syntax highlighter to bring colours to kubectl output
- Host: GitHub
- URL: https://github.com/andreazorzetto/yh
- Owner: andreazorzetto
- License: apache-2.0
- Created: 2020-04-22T15:45:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-14T09:49:42.000Z (about 4 years ago)
- Last Synced: 2024-10-13T06:57:49.959Z (3 months ago)
- Language: Go
- Homepage:
- Size: 843 KB
- Stars: 414
- Watchers: 10
- Forks: 24
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - andreazorzetto/yh - YAML syntax highlighter to bring colours to kubectl output (Go)
README
# yh - YAML Highlighter
A dummy syntax highlighter that brings colours to YAML output, jq style.
This project starts with the author's incapacity to give up on colours while playing with kubernetes cli and YAML output (`kubectl get something -o yaml`).
Unable to find another YAML highlighter where he could simply dump something on, with little to no ~~respect~~ expectations, and inspired by the recent Go training, he decided to write one from scratch.
![Comparison with or without yh](https://raw.githubusercontent.com/andreazorzetto/yh/master/images/comparison.png)
# How to use
As **easy** as you secretly hoped
`kubectl get pod alpine -o yaml | yh`
Other commands:
- `yh help`
- `yh version`# Download & installation
Find the latest releases here:
- [Releases](https://github.com/andreazorzetto/yh/releases)
**Brew**
`brew install yh`
**Linux or MacOS**
Unzip
`unzip yh--.zip`
Move the binary somewhere in your PATH
`mv yh /usr/local/bin/`
**Windows**
Like above but with your mouse
# Future developments
The aim of this project is to be a simple highlighting tool, while there are more featured projects our there to do YAML parsing. However I intend to keep maintaining the code and introduce new features and/or explore different routes in the future. Anyone thinking to contribute or make suggestions/requests would be more than welcome.