Create, Collect into Object
This is used to construct objects (or maps). This can be used against existing yaml, or to create fresh yaml documents.
Collect empty object
Running
will output
Wrap (prefix) existing object
Given a sample.yml file of:
then
will output
Using splat to create multiple objects
Given a sample.yml file of:
then
will output
Working with multiple documents
Given a sample.yml file of:
then
will output
Creating yaml from scratch
Running
will output
Creating yaml from scratch with multiple objects
Running
will output
Last updated