lib/eco/cli/config/default/input.rb in eco-helpers-2.0.25 vs lib/eco/cli/config/default/input.rb in eco-helpers-2.0.26
- old
+ new
@@ -63,11 +63,11 @@
input = session.entries(file: file, format: format)
when :json
input = [file].flatten.reduce(Eco::API::Organization::People.new([])) do |people, file|
people.merge(JSON.parse(File.read(file)))
end
- else
- input = session.csv_entries(file)
+ else # :csv
+ input = session.csv_entries(file, check_headers: true)
end
end
input
end
end