Class: TableBeet::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = nil) ⇒ CLI

Returns a new instance of CLI.



9
10
11
# File 'lib/table_beet/cli.rb', line 9

def initialize(opts = nil)
  @runner = TableBeet::Runner.new(opts || parse_options)
end

Class Method Details

.run(opts = nil) ⇒ Object



17
18
19
# File 'lib/table_beet/cli.rb', line 17

def self.run(opts = nil)
  TableBeet::CLI.new(opts).run
end

Instance Method Details

#runObject



13
14
15
# File 'lib/table_beet/cli.rb', line 13

def run
  @runner.run
end