how to use yq as a yaml viewer? #1558
Unanswered
leleliu008
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Ah this is an annoying known issue (go-yaml/yaml#880) of the underlying go-yaml parser where if any line in the string block has a trailing space, it converts it to a single line quoted form. Only fix I know is to remove trailing spaces like so:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
given a yaml file named ncurses.yml and it's content as follows:
I use
yq -P ncurses.yml
command to see the file content, I expected to see raw file with addtion of color highlighting, but actually it output a processed content as follows:how should I do?
Beta Was this translation helpful? Give feedback.
All reactions