Documentation
¶
Overview ¶
Package yamlfmt formats the YAML of a workflow, as gofmt formats Go: there is one way a workflow is laid out, and nothing to configure.
It changes only the whitespace and the comments of a file, never what the file says: scalars are left as they are written, quotes and all.
- Indentation is two spaces, and a sequence is not indented under the key it belongs to.
- A blank line separates the keys at the top of a file when either holds a mapping or a sequence written on the lines under it, and the jobs from one another. There is no other blank line, apart from those a scalar holds.
- A comment on its own line is indented as the line it comes before, and one at the end of a line is a single space from it. Each has a space after its #.
- A key is a single space from its value, and a - from its entry.
- No line ends in whitespace, and the file ends in a single newline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.