Created
February 18, 2017 09:54
-
-
Save stephencoe/db1630fc900f82c9863417a079ee6ee3 to your computer and use it in GitHub Desktop.
YML Lint
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
#!/bin/bash | |
# Validate YML with pretty print output | |
yml-lint() { | |
ruby -e "require 'yaml';require'JSON';puts JSON.pretty_generate(JSON.parse(YAML.load_file(\"$@\").to_json))"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment