Class: CompareLinkerWrapper::CLI
- Inherits:
-
Thor
- Object
- Thor
- CompareLinkerWrapper::CLI
- Defined in:
- lib/compare_linker_wrapper/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
5 6 7 |
# File 'lib/compare_linker_wrapper/cli.rb', line 5 def self.exit_on_failure? true end |
Instance Method Details
#compare(*args) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/compare_linker_wrapper/cli.rb', line 24 def compare(*args) setup_logger() params = { head: [:head], base: [:base], formatter: [:formatter] } if [:file] params[:file] = [:file] else params[:file] = args end puts Linker.new('.').link(params) rescue StandardError => e () raise e end |
#version ⇒ Object
12 13 14 |
# File 'lib/compare_linker_wrapper/cli.rb', line 12 def version puts "CompareLinkerWrapper version #{::CompareLinkerWrapper::VERSION}" end |