Sha256: 46cec5b9b055d4f068952dd6e151f9686b32cde6c761458f663b1a68d5142dbf
Contents?: true
Size: 777 Bytes
Versions: 13
Compression:
Stored size: 777 Bytes
Contents
module I18n::Tasks module Command module Commands module XLSX include Command::Collection cmd :xlsx_report, pos: '[locale...]', desc: t('i18n_tasks.cmd.desc.xlsx_report'), args: [:locales, ['-p', '--path PATH', 'Destination path', default: 'tmp/i18n-report.xlsx']] def xlsx_report(opt = {}) begin require 'axlsx' rescue LoadError message = %Q(For spreadsheet report please add axlsx gem to Gemfile:\ngem 'axlsx', '~> 2.0') log_stderr Term::ANSIColor.red Term::ANSIColor.bold message exit 1 end spreadsheet_report.save_report opt[:path], opt.except(:path) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems