Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (23 sloc) 0.623 kB
#!/usr/bin/env ruby
require 'lib/ghinfo.rb'
if ARGV[0].nil? || ARGV[0] == "-h" || ARGV[0] == "--help"
puts "Usage: ghinfo username"
puts " username Github username username to get information about"
exit if !ARGV[0].nil?
begin
print "Github user to get information about (Ctrl-c to exit)?: "
username = gets
while username.empty?
print "Please type the Github username to get information about (Ctrl-c to exit): "
username = gets
end
rescue Interrupt
exit
rescue Exception => e
puts "#{e} (#{e.class})"
end
else
username = ARGV[0]
end
ghinfo = GhInfo.new
ghinfo.display_projects(username)
Jump to Line
Something went wrong with that request. Please try again.