Class: Csv2rest::CLI
- Inherits:
-
Thor
- Object
- Thor
- Csv2rest::CLI
- Defined in:
- lib/csv2rest/cli.rb
Instance Method Summary collapse
Instance Method Details
#generate(csv, json) ⇒ Object
16 17 18 19 |
# File 'lib/csv2rest/cli.rb', line 16 def generate csv, json files = Csv2rest.generate "file:"+csv, Csvlint::Schema.load_from_json(json) Csv2rest.write_json files, end |
#version ⇒ Object
8 9 10 |
# File 'lib/csv2rest/cli.rb', line 8 def version puts "csv2rest version #{VERSION}" end |