MCPcopy Index your code
hub / github.com/andreazorzetto/yh

github.com/andreazorzetto/yh @v0.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.4.0 ↗ · + Follow
31 symbols 72 edges 4 files 1 documented · 3% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
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

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:

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

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.

Core symbols most depended-on inside this repo

isKeyValue
called by 12
highlight/lines.go
isEmptyLine
called by 10
highlight/lines.go
valueIsBoolean
called by 9
highlight/lines.go
valueIsNumberOrIP
called by 9
highlight/lines.go
isElementOfList
called by 9
highlight/lines.go
valueContainsChompingIndicator
called by 9
highlight/lines.go
isComment
called by 8
highlight/lines.go
indentationSpaces
called by 8
highlight/lines.go

Shape

Function 21
Method 9
Struct 1

Languages

Go100%

Modules by API surface

highlight/lines_test.go10 symbols
highlight/lines.go10 symbols
highlight/highlight.go9 symbols
main.go2 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add yh \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact