Skip to content

Instantly share code, notes, and snippets.

@joshenders
Created December 14, 2015 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshenders/a163b2a019659db72350 to your computer and use it in GitHub Desktop.
Save joshenders/a163b2a019659db72350 to your computer and use it in GitHub Desktop.
YAML syntax checker
function ylint() {
if [[ "$#" -ne 1 ]]; then
echo "Usage: ${FUNCNAME} <infile>"
return 1
fi
ruby -e "require 'yaml'; YAML.load_file('$1')"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment