Sha256: bd445665878e968ea53310f04d214ae2ca9b53f9685950fdaf39428ca788b042

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

# 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. Default: last 7 days.'
    def since(date = Date.today - 7)
      runner = WhatsupGithub::Runner.new(Date.parse(date.to_s))
      runner.run
    end

    desc 'version', 'Current version of the gem'
    def version
      puts "Current version is #{WhatsupGithub::VERSION}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whatsup_github-0.5.0 lib/whatsup_github/cli.rb