Created
October 28, 2020 22:31
-
-
Save emilong/17d2c36c997fe40fab67d9ef5d4b8032 to your computer and use it in GitHub Desktop.
Expand YAML anchor merges
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "yaml" | |
require "json" | |
puts YAML.dump(JSON.load(YAML.load_file(ARGV.first).to_json)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment