yq

A lightweight and portable command-line YAML processor. More information: https://mikefarah.gitbook.io/yq/.…

yq

A lightweight and portable command-line YAML processor. More information: https://mikefarah.gitbook.io/yq/.

yq eval {{path/to/file.yaml}}

yq read {{path/to/file.yaml}} --colors

yq eval '.[0]' {{path/to/file.yaml}}

yq read {{path/to/file.yaml}} '[0]'

yq eval '.{{key}} = "{{value}}"' --inplace {{path/to/file.yaml}}

yq write --inplace {{path/to/file.yaml}} '{{key}}' '{{value}}'

yq eval-all 'select(filename == "{{path/to/file1.yaml}}") * select(filename == "{{path/to/file2.yaml}}")' {{path/to/file1.yaml}} {{path/to/file2.yaml}}

yq merge {{path/to/file1.yaml}} {{path/to/file2.yaml}} --colors

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← youtube-viewer yt-dlp →