Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skanehira/yd
YAML Incremental Digger.
https://github.com/skanehira/yd
cli go yaml
Last synced: 3 months ago
JSON representation
YAML Incremental Digger.
- Host: GitHub
- URL: https://github.com/skanehira/yd
- Owner: skanehira
- License: mit
- Created: 2021-03-19T08:00:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-25T07:46:11.000Z (over 1 year ago)
- Last Synced: 2024-06-20T13:28:56.015Z (5 months ago)
- Topics: cli, go, yaml
- Language: Go
- Homepage:
- Size: 42 KB
- Stars: 21
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yd
YAML Incremental Digger.![](https://i.gyazo.com/521400d0740ed12c1606a8ab9b618632.gif)
## Installation
```sh
$ go install github.com/skanehira/yd@latest
```## Usage
All of first, you can read yaml file as following.```bash
$ yd file.yaml
$ yd https://sample.com/file.yaml
$ yd < file.yaml
$ yd -f file.yaml
```Next, you can enter some query like `select(.a == .b)` to filter key or values.
`yd` is using [yq](github.com/mikefarah/yq) so the query can enter as well as `yq`.
Please refer [this document](https://mikefarah.gitbook.io/yq/operators) for learn how to use query of `yq`.## Keybind
| Key | Description |
|---------|-------------|
| `Enter` | focus view |
| `Esc` | focus input |## Author
skanehira## Thanks
- https://github.com/mikefarah/yq