lib/whatsup_github/cli.rb in whatsup_github-0.4.2 vs lib/whatsup_github/cli.rb in whatsup_github-0.5.0

- old
+ new

@@ -1,15 +1,20 @@ # frozen_string_literal: true require 'thor' require 'whatsup_github/runner' +require 'whatsup_github/version' module WhatsupGithub + # CLI options class CLI < Thor - desc 'since DATE', 'Filters pull requests since the specified date till now.' - + desc 'since DATE', 'Filters pull requests since the specified date till now. Default: last 7 days.' def since(date = Date.today - 7) runner = WhatsupGithub::Runner.new(Date.parse(date.to_s)) runner.run end - default_task :since + + desc 'version', 'Current version of the gem' + def version + puts "Current version is #{WhatsupGithub::VERSION}" + end end end