add export to yaml

This commit is contained in:
nishiki 2014-11-15 19:14:42 +01:00
parent 76ee0fe2b4
commit af04b8761d
5 changed files with 47 additions and 8 deletions
lib/UI

View file

@ -307,8 +307,8 @@ class Cli
# Export the items in a CSV file
# @args: file -> the destination file
def export(file)
if @mpw.export(file)
def export(file, type)
if @mpw.export(file, type)
puts "The export in #{file} is succesfull!"
else
puts "#{I18n.t('display.error')} #17: #{@mpw.error_msg}"