yh for Mac
A dummy syntax highlighter that brings colours to YAML output, jq style.
yh — overview
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.
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
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.
Details
YAML 语法高亮,将颜色带到只有 jq 才能做到的地方
How to install yh
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2020-10-20; current version v0.4.0, with the latest 8 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| v0.4.0 | 2020-10-20 | Stable | 1.2 MB | Download | Download | Download |
| v0.3.3 | 2020-10-17 | Stable | 1.2 MB | Download | Download | Download |
| v0.3.2 | 2020-10-17 | Stable | 1.2 MB | Download | Download | Download |
| v0.3.1 | 2020-10-17 | Stable | 1.2 MB | Download | Download | Download |
| v0.2.1 | 2020-04-24 | Stable | 1.2 MB | Download | Download | Download |
| v0.2.0 | 2020-04-23 | Stable | 1.2 MB | Download | Download | Download |
| v0.1.1 | 2020-04-23 | Stable | 1.2 MB | Download | Download | Download |
| v0.1 | 2020-04-23 | Stable | 1.2 MB | Download | Download | Download |
Data from GitHub Releases; stable releases first, each group sorted newest first.
Prebuilt bottle platforms
Official Homebrew bottles cover:
- Apple silicon · latest macOS
- Apple silicon · macOS 26 Tahoe
- Apple silicon · macOS 15 Sequoia
- Apple silicon · macOS 14 Sonoma
- Apple silicon · macOS 13 Ventura
- arm64_monterey
- arm64_big_sur
- Intel · macOS 14 Sonoma
- Intel · macOS 13 Ventura
- Intel · macOS 12 Monterey
- big_sur
- Linux · ARM64
- Linux · x86_64
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| yh | v0.4.0 | Apache-2.0 | CLI | 31 |
| yamlresume | v0.18.0 | MIT | CLI | 19 |
| kalker | v2.2.3 | MIT | CLI | 27 |
| yamale | 6.1.0 | MIT | CLI | 85 |
Similar apps: Command-line Tools
yamlresume
English | Français | Deutsch | Español | Português | Bahasa Indonesia News: YAMLResume v0.kalker
Full-featured calculator with math syntaxyamale
A schema and validator for YAML.chroma
[!NOTE] v3 alpha available. Chroma v3 replaces the custom Iterator type with Go's built-in iter.openssl@4
Cryptography and SSL/TLS Toolkitxz
General-purpose data compression with high compression ratioCategories: Command-line Tools