#!/usr/bin/env ruby require_relative '../lib/yaml-validator' def main root_path = '.' root_path = ARGV[0] if ARGV.length > 0 puts "Validating #{root_path}" errors = YamlValidator.new(root_path).validate() puts errors puts "\nfound #{errors.length} errors" end main()