Project

General

Profile

« Previous | Next » 

Revision 6498291e

Added by Thomas McKay over 7 years ago

fixes #16880 - add --search option to export

View differences:

lib/hammer_cli_csv/locations.rb
def export(csv)
csv << [NAME, PARENT]
@api.resource(:locations).call(:index, {:per_page => 999999})['results'].each do |location|
@api.resource(:locations).call(:index, {
:per_page => 999999,
:search => option_search
})['results'].each do |location|
csv << [location['name'], '']
end
end

Also available in: Unified diff