yq

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 14 Imported by: 0

README

yq

yq lets you read YAML files easily on the terminal. You can find key/values easily.

Motivation

Reading yaml configurations for k8s file becomes ardent through the terminal. yq helps reading/searching through the YAML easy. It uses tview and is inspired by tson.

asciicast

Installation

Grab the latest binary
$ cd "$(mktemp -d)"
$ curl -sL "https://github.com/arriqaaq/yq/releases/download/v0.1.0/yq_0.1.0_$(uname)_amd64.tar.gz" | tar xz
$ mv yq /usr/local/bin
# yq should be available now in your $PATH

Usage

NAME:
   yq 

USAGE:
# from file
$ yq < test.json

# from kubectl
$ kubectl get pod kube-dns -n kube-system -oyaml | yq

Bindings

YAMLtree
key description
s show current node
S expand all value nodes
x hide current node
X collapse all value nodes
/ or f search nodes
q quit

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL