class Csv2rest::CLI

Public Instance Methods

generate(csv, json) click to toggle source
# 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, options
end
version() click to toggle source
# File lib/csv2rest/cli.rb, line 8
def version
  puts "csv2rest version #{VERSION}"
end