https://github.com/skanehira/yd
YAML Incremental Digger.
https://github.com/skanehira/yd
cli go yaml
Last synced: 10 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 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-25T07:46:11.000Z (over 3 years ago)
- Last Synced: 2024-12-09T14:49:26.030Z (over 1 year 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.

## 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 |
| `Ctrl-n` | scroll down view |
| `Ctrl-p` | scroll up view |
## Author
skanehira
## Thanks
- https://github.com/mikefarah/yq