mirror of
https://github.com/dkhamsing/open-source-ios-apps.git
synced 2024-11-27 10:14:59 +03:00
16 lines
221 B
Ruby
16 lines
221 B
Ruby
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]
|