Class: CsvCop::Cli

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

Instance Method Summary collapse

Instance Method Details

#start(csv_file_path) ⇒ Object



9
10
11
12
13
14
# File 'lib/csvcop/cli.rb', line 9

def start(csv_file_path)
  config = CsvCop::Config.new(options[:config]).read
  csv = CSV.table(csv_file_path)
  cop = CsvCop::Cop::Cop.new(csv, config)
  cop.on_ensure_all
end