Prefix
Paths can be prefixed using the 'prefix' command. The complete yaml content will be nested inside the new prefix path.
To Stdout¶
Given a data1.yaml file of:
then
will output:
Arbitrary depth¶
Given a data1.yaml file of:
then
will output:
Updating files in-place¶
Given a data1.yaml file of:
then
will update the data1.yaml file so that the path 'c' is prefixed to all other paths.
Multiple Documents - prefix a single document¶
Given a data1.yaml file of:
then
will output:
Multiple Documents - prefix all documents¶
Given a data1.yaml file of:
then
will output:
Last updated