Class: Lemon::CLI::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/lemon/cli/base.rb

Overview

Base class for all commands.

Direct Known Subclasses

Coverage, Generate, OBrother, Test

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.run(argv) ⇒ Object



11
12
13
# File 'lib/lemon/cli/base.rb', line 11

def self.run(argv)
  new.run(argv)
end

Instance Method Details

#optionsObject



16
17
18
# File 'lib/lemon/cli/base.rb', line 16

def options
  @options
end

#run(argv) ⇒ Object



21
22
23
24
25
26
27
28
29
# File 'lib/lemon/cli/base.rb', line 21

def run(argv)
  begin
    command_parse(argv)
    command_run(argv)
  #rescue => err
  #  raise err if $DEBUG
  #  $stderr.puts('ERROR: ' + err.to_s)
  end
end