Skip to content

Setting multiline content generates |- #1384

Answered by mikefarah
AnderssonPeter asked this question in Q&A
Discussion options

You must be logged in to vote

Gday - take a look at this documentation here: https://mikefarah.gitbook.io/yq/operators/string-operators#string-blocks-bash-and-newlines

Basically the dash at the end of |- indicates that there is no new line at the end of the string (https://yaml-multiline.info/)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by AnderssonPeter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants