YAML
Created: 2018-11-09 10:29:50 -0800 Modified: 2018-11-09 15:29:01 -0800
Background
Section titled BackgroundJust writing some YAML references here.
Misc. tips
Section titled Misc. tipsSpreading long lines over multiple lines (reference1, reference2)
Section titled Spreading long lines over multiple lines (reference1, reference2)Don’t use backslashes!
You can do this by either treating the lines as new lines or spaces:
| \ /| |\| | / / | | | |__
↑ That will be interpreted as having newlines since there’s a pipe character.
> This will just show with spaces in the string
↑ This is interpreted with spaces due to the ”>”
Be very careful if you have a shell script running and ”>” as your whitespace separation character! You may run into a problem like this:
- run: name: Show why comments are bad in conjunction with ">" command: > ./foo.exe --bar bar # helpful comment here --baz baz