Class: PrLog::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/pr_log/cli.rb

Overview

The main command line interface

Instance Method Summary collapse

Instance Method Details

#fetchObject



24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/pr_log/cli.rb', line 24

def fetch
  FetchCommand.perform(options) do |command|
    command.on(:fetching) do |milestone, github_repository_name|
      say_fetching(milestone, github_repository_name)
    end

    command.on(:inserting) do |pull_requests, changelog_file|
      say_inserting(pull_requests, changelog_file)
    end
  end
rescue Error => e
  say_status(:error, e.message, :red)
end