Skip to content

Instantly share code, notes, and snippets.

@bleonard
Created January 14, 2013 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bleonard/4527775 to your computer and use it in GitHub Desktop.
Save bleonard/4527775 to your computer and use it in GitHub Desktop.
program :version, '0.0.1'
program :description, 'See activity on Github.'
command :impact do |c|
c.syntax = 'hubtime impact'
c.summary = ''
c.description = 'Graph your additions and deletions'
c.option '--months INTEGER', 'How many months of history'
c.option '--user USERNAME', 'Which Github user'
c.action do |args, options|
options.default :months => 12
activity = Activity.new(self, options.user, options.months)
file = activity.impact
puts "saved: #{file}"
`open #{file}`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment