# 使用 Homebrew 安装 yh

查看 yh 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:yh
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install yh
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:yh
- **软件包管理器:** Homebrew
- **版本:** 0.4.0
- **来源摘要:** YAML syntax highlighter to bring colours where only jq could
- **主页:** <https://github.com/andreazorzetto/yh>
- **仓库:** <https://github.com/andreazorzetto/yh>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- yh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.4.0
## 项目历史与用法

yh is a small Go command-line YAML highlighter aimed at colorizing YAML streams, especially kubectl output.

### 项目历史

The README gives a precise origin story: the author wanted color while working with Kubernetes YAML output, did not find a simple dump-and-highlight tool, and wrote one from scratch after recent Go training. The repository was created in April 2020 and published a quick run of 0.x releases through October 2020.

### 采用历史

yh's adoption is narrow but clear: it targets Kubernetes users who pipe kubectl get ... -o yaml into a jq-like highlighter. The README documents brew install yh and downloadable release binaries for Linux, macOS, and Windows.

### 使用方式

The canonical usage is kubectl get pod alpine -o yaml | yh. The binary also exposes help and version subcommands.

### 为什么软件包爱好者会关心

yh is an example of a packageable single-purpose CLI: one binary, stdin-to-stdout behavior, no configuration, and a memorable niche adjacent to jq and kubectl.

### 时间线

- 2020-04: Repository created and v0.1/v0.2 releases published.
- 2020-10: v0.4.0 published.

### Related projects

- kubectl: primary documented producer of YAML streams for yh.
- jq: README reference point for command-line colorized output.

### 来源

- <https://api.github.com/repos/andreazorzetto/yh - repository creation date and description.>
- <https://api.github.com/repos/andreazorzetto/yh/releases - release tags and publication dates.>
- <https://github.com/andreazorzetto/yh - README describes motivation, usage, installation, and project scope.>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/yh.yml](https://github.com/mxcl/pkgdb/blob/main/combined/yh.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
