Sha256: 96f7834a2426b93f793f11f96a378d70fb8e8eea40bbafbdd0ecb11a49d475d1
Contents?: true
Size: 708 Bytes
Versions: 3
Compression:
Stored size: 708 Bytes
Contents
# frozen_string_literal: true module I18n::Tasks module Command module Commands module Health include Command::Collection cmd :health, pos: '[locale ...]', desc: t('i18n_tasks.cmd.desc.health'), args: %i[locales out_format] def health(opt = {}) forest = i18n.data_forest(opt[:locales]) stats = i18n.forest_stats(forest) if stats[:key_count].zero? fail CommandError, t('i18n_tasks.health.no_keys_detected') end terminal_report.forest_stats forest, stats [missing(opt), unused(opt)].detect { |result| result == :exit_1 } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
i18n-tasks-0.9.16 | lib/i18n/tasks/command/commands/health.rb |
i18n-tasks-0.9.15 | lib/i18n/tasks/command/commands/health.rb |
i18n-tasks-0.9.14 | lib/i18n/tasks/command/commands/health.rb |