Sha256: c0e77d7bc9fa9dfad8b43561242a6e24db81fa6f4cd04fbd9d54579cdc9d0877
Contents?: true
Size: 806 Bytes
Versions: 6
Compression:
Stored size: 806 Bytes
Contents
# frozen_string_literal: true 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 = %(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
6 entries across 6 versions & 1 rubygems