I've considered just converting to JSON , editing, then converting back to yaml. Yaml is a nightmare and I've no idea why it ever caught on.
People like YAML because it doesn’t require double quotes in the simple case of adding some text to a key. And people don’t like adding trailing commas to array items.
The problem is the insanity of parsing values like “true” or “off” or “123”.
“template”
multiline string values back into valid yaml for proper indenting.
Works great, the issue is explaining to anybody why it was necessary, they understand it works but plead for a better way.
It’s one of those clever solutions that seems overcomplicated until you try to replace it and realize it’s actually quite elegant.