public
Rubygem
Description: The official `github` command line helper for simplifying your GitHub experience.
Homepage: http://github.com
Clone URL: git://github.com/defunkt/github-gem.git
Search Repo:
line up commands
defunkt (author)
Tue May 06 01:13:08 -0700 2008
commit  8261bb0b1a577f24047f76409f114820937a89ac
tree    ceff7ed189c6f488a799959567a32af002338889
parent  808c2c3563c2cc33944324cd0201de596d995c56
...
90
91
92
 
93
 
94
95
96
...
90
91
92
93
94
95
96
97
98
0
@@ -90,7 +90,9 @@
0
 GitHub.register :default do
0
   puts "Usage: github command <space separated arguments>", ''
0
   puts "Available commands:", ''
0
+ longest = GitHub.descriptions.map { |d,| d.to_s.size }.max
0
   GitHub.descriptions.each do |command, desc|
0
+ command = "%-#{longest}s" % command
0
     puts " #{command} => #{desc}"
0
   end
0
   puts

Comments

    No one has commented yet.