☰ Menu
CLI Open source 31 installs/mo Up 1.99×

yh for Mac

yh

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

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2020-10-20; current version v0.4.0, with the latest 8 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
v0.4.02020-10-20Stable1.2 MBDownloadDownloadDownload
v0.3.32020-10-17Stable1.2 MBDownloadDownloadDownload
v0.3.22020-10-17Stable1.2 MBDownloadDownloadDownload
v0.3.12020-10-17Stable1.2 MBDownloadDownloadDownload
v0.2.12020-04-24Stable1.2 MBDownloadDownloadDownload
v0.2.02020-04-23Stable1.2 MBDownloadDownloadDownload
v0.1.12020-04-23Stable1.2 MBDownloadDownloadDownload
v0.12020-04-23Stable1.2 MBDownloadDownloadDownload

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.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
yhv0.4.0Apache-2.0CLI31
yamlresumev0.18.0MITCLI19
kalkerv2.2.3MITCLI27
yamale6.1.0MITCLI85

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…