Class: Octy::CLI

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

Instance Method Summary collapse

Instance Method Details

#changelogObject



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/octy/cli.rb', line 15

def changelog
  begin
    octy = Octy::Core.new
    octy.changelog(options[:repo], options[:from], options[:to])
  rescue Octokit::Unauthorized
    raise Octy::InvalidAccessTokenError
  rescue Octokit::NotFound
    raise Octy::InvalidResourceError
  rescue => e
    puts e.message
  end
end