Sha256: 2e927ca10a87dc3f750ec8c69572cf0b8338a2da96b48e8b80c9cba88a463151

Contents?: true

Size: 330 Bytes

Versions: 5

Compression:

Stored size: 330 Bytes

Contents

require 'thor'
require "whatsup_github/runner"
module WhatsupGithub
  class CLI < Thor
    desc "since DATE", "Filters pull requests since the specified date till now."

    def since(date = Date.today - 7)

      runner = WhatsupGithub::Runner.new(Date.parse(date.to_s))
      runner.run
    end
    default_task :since
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whatsup_github-0.3.1 lib/whatsup_github/cli.rb
whatsup_github-0.3.0 lib/whatsup_github/cli.rb
whatsup_github-0.2.0 lib/whatsup_github/cli.rb
whatsup_github-0.1.1 lib/whatsup_github/cli.rb
whatsup_github-0.0.1 lib/whatsup_github/cli.rb