Sometimes you want to set a nested attribute whose parent properties may not be set.
Ex:
foo:
bar: hello
$ yaml set test.yaml foo.baz.nested goodbye
Right now, this returns an error. Which makes sense because foo.baz.nested isn't actually a property. But we could auto-create properties. I don't think this is a great default behavior, but we could add a flag for it to override the default.
$ yaml -set -- auto foo.baz.nested goodbye
foo:
bar: hello
baz:
nested: goodbye
Sometimes you want to set a nested attribute whose parent properties may not be set.
Ex:
Right now, this returns an error. Which makes sense because
foo.baz.nested
isn't actually a property. But we could auto-create properties. I don't think this is a great default behavior, but we could add a flag for it to override the default.