提交 69fa604c 编写于 作者: 张重言's avatar 张重言 🌈

feat: 添加格式验证程序

上级 2ec93939
require 'yaml'
# run `ruby validator.rb` in current directory
Dir.children('projects').each do |folder|
begin
path = "projects/#{folder}/imports.yml"
YAML.load(File.read(path)) if File.exists?(path)
rescue => exception
puts "#{exception}"
puts "Format wrong with projects/#{folder}/imports.yml"
end
end
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册