Created
January 2, 2023 16:58
-
-
Save MikeJansen/bac12a68e0e4d57f3a844fa20c5dee0c to your computer and use it in GitHub Desktop.
yq functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pipe YAML or JSON, optionally query it, and display as colorized YAML in less | |
function y() { yq -C "$@" | less -R; } | |
function yj() { yq -C -p=j -o=y "$@" | less -R; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment