Prefix
Prefixes a yaml document with the given path expression. The complete yaml content will be nested inside the new prefix path.
See docs for path expression for more details.
Prefix a document
Given a data1.yaml file of:
then
will output:
Updating files in-place
will update the data1.yaml file so that the path 'c' prefixes the document.
Multiple Documents
Prefix a single document
Given a data1.yaml file of:
then
will output:
Prefix all documents
Given a data1.yaml file of:
then
will output:
Last updated