open-source-ios-apps/.github/inspect.rb

16 lines
221 B
Ruby
Raw Normal View History

2016-05-12 17:35:44 +03:00
require 'json'
require 'pp'
if ARGV.count == 0
puts "Usage: ruby inspect.rb <project number>"
exit
end
c = File.read 'contents.json'
j = JSON.parse c
projects = j['projects']
proj = ARGV[0].to_i
pp projects[proj]