Created
January 14, 2013 04:31
-
-
Save bleonard/4527775 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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