cereja icon indicating copy to clipboard operation
cereja copied to clipboard

Create .yml manipulator

Open jlsneto opened this issue 4 years ago • 0 comments

  • [ ] Whitespace indentation is used for denoting structure; however, tab characters are not allowed as part of indentation.

  • [ ] Comments begin with the number sign (#), can start anywhere on a line and continue until the end of the line. Comments must be separated from other tokens by whitespace characters.[15] If # characters appear inside of a string, then they are number sign (#) literals.

  • [ ] List members are denoted by a leading hyphen (-) with one member per line.

    • A list can also be specified by enclosing text in square brackets ([...]) with each entry separated by commas.
  • [ ] An associative array entry is represented using colon space in the form key: value with one entry per line. YAML requires the colon be followed by a space so that scalar values such as http://www.wikipedia.org can generally be represented without needing to be enclosed in quotes.

  • [ ] An associative array entry is represented using colon space in the form key: value with one entry per line. YAML requires the colon be followed by a space so that scalar values such as http://www.wikipedia.org can generally be represented without needing to be enclosed in quotes.

    • A question mark can be used in front of a key, in the form "?key: value" to allow the key to contain leading dashes, square brackets, etc., without quotes.
    • An associative array can also be specified by text enclosed in curly braces ({...}), with keys separated from values by colon and the entries separated by commas (no spaces are necessary, for JSON compatibility).
  • [ ] Strings (scalars) are ordinarily unquoted, but may be enclosed in double-quotes ("), or single-quotes (').

    • Within double-quotes, special characters may be represented with C-style escape sequences starting with a backslash (). According to the documentation the only octal escape supported is \0.
  • [ ] Block scalars are delimited with indentation with optional modifiers to preserve (|) or fold (>) newlines.

  • [ ] Multiple documents within a single stream are separated by three hyphens (---).

    • Three periods (...) optionally end a document within a stream.
  • [ ] Repeated nodes are initially denoted by an ampersand (&) and thereafter referenced with an asterisk (*).

  • [ ] Nodes may be labeled with a type or tag using the exclamation point (!!) followed by a string, which can be expanded into a URI.

  • [ ] YAML documents in a stream may be preceded by 'directives' composed of a percent sign (%) followed by a name and space-delimited parameters. Two directives are defined in YAML 1.1:

    • The %YAML directive is used for identifying the version of YAML in a given document.
    • The %TAG directive is used as a shortcut for URI prefixes. These shortcuts may then be used in node type tags.
  • [ ] Two additional sigil characters are reserved in YAML for possible future specification: the at sign (@) and backtick (`).

see more about .yml

jlsneto avatar Jun 19 '20 23:06 jlsneto