#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "mini_yaml" def usage STDERR.puts "Usage: yaml-lint FILENAME" exit 1 end if !ARGV[0] || !File.exist?(ARGV[0]) usage end puts MiniYaml::Linter.new(File.read(ARGV[0])).dump