# 使用 Homebrew 安装 yh

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install yh
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:yh
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/yh>
- **版本:** 0.4.0
- **来源摘要:** YAML syntax highlighter to bring colours where only jq could
- **主页:** <https://github.com/andreazorzetto/yh>
- **仓库:** <https://github.com/andreazorzetto/yh>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/andreazorzetto/yh/archive/refs/tags/v0.4.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- yh (cli)
- yh (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.4.0
- 本地数据: OK
- 上游仓库: https://github.com/andreazorzetto/yh
- 检测到的最新版本: v0.4.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** yh
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [micro](https://pkg.so/zh-hans/brew/micro/) - Shares pkgdb curated category or tags: cli, developer-tools, syntax-highlighting, terminal.
- [rich-cli](https://pkg.so/zh-hans/brew/rich-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, syntax-highlighting, terminal.
- [silicon](https://pkg.so/zh-hans/brew/silicon/) - Shares pkgdb curated category or tags: cli, developer-tool, developer-tools, syntax-highlighting.
- [gat](https://pkg.so/zh-hans/brew/gat/) - Shares pkgdb curated category or tags: cli, developer-tools, syntax-highlighting, terminal.
- [ccat](https://pkg.so/zh-hans/brew/ccat/) - Shares pkgdb curated category or tags: cli, developer-tools, syntax-highlighting, terminal.
- [nyan](https://pkg.so/zh-hans/brew/nyan/) - Shares pkgdb curated category or tags: cli, developer-tools, syntax-highlighting, terminal.
- [git-split-diffs](https://pkg.so/zh-hans/brew/git-split-diffs/) - Shares pkgdb curated category or tags: cli, developer-tools, syntax-highlighting, terminal.
- [diffr](https://pkg.so/zh-hans/brew/diffr/) - Shares pkgdb curated category or tags: cli, developer-tools, syntax-highlighting, terminal.
- [zsh-patina](https://pkg.so/zh-hans/brew/zsh-patina/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, highlighter, highlighting.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
