Welcome to the yt
documentation site.
Recent Posts
Getting Started
Installation I’ll create a release once I’m happy. Until then, you’ll need to install go in order to install yt.
go get github.com/laher/yt Run The default behaviour parses the input as YAML and spits it out in the same format.
Try running yt against the testdata/k8s.yaml file provided in this repository (it’s an anonymised kubernetes file, containing 3 yaml documents)
yt < testdata/k8s.yaml This is effectively the same as setting the main query to '{{.
read more
About
yt is a YAML processor in the spirit of jq and sed.
yt can work with multi-document YAML files. yt is VERY experimental - please use with care. Goals Query yaml documents Support multi-document files (with --- separator lines) Manipulate yaml documents Generate yaml Merge and combine yaml docs Keep yaml separate from looping / conditionals Why Yaml seems to be everywhere at the moment, particularly in Ops tooling - see Kubernetes, Terraform, Concourse, Circle CI …
read more