You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
YAML has folded-style multi-line strings, which means that new-lines are replaced with spaces to end up with a single-line string. I find this convenient for splitting long shell commands over multiple lines for readability. Does this seem like something potentially good to implement?
For example and context, I'm looking at using jsonnet to produce YAML Gitlab CI config files. By hand a simplified version looks like this:
I really like how I can format the second command in the script block. I think it is very readable and I don't have to fiddle around with escaping new-lines with a \ like I would in a shell script. I would love to be able to do something similar in jsonnet.
The text was updated successfully, but these errors were encountered:
This is cross-posted at google/jsonnet.
YAML has folded-style multi-line strings, which means that new-lines are replaced with spaces to end up with a single-line string. I find this convenient for splitting long shell commands over multiple lines for readability. Does this seem like something potentially good to implement?
For example and context, I'm looking at using jsonnet to produce YAML Gitlab CI config files. By hand a simplified version looks like this:
I really like how I can format the second command in the script block. I think it is very readable and I don't have to fiddle around with escaping new-lines with a
\
like I would in a shell script. I would love to be able to do something similar in jsonnet.The text was updated successfully, but these errors were encountered: