Class: Lemon::CLI::Base
- Inherits:
-
Object
show all
- Defined in:
- lib/lemon/cli/base.rb
Overview
Base class for all commands.
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
#options ⇒ Object
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)
end
end
|