Sha256: 13245dbefbb625b51868e362853d1146fcf28a361d2cbdc12d29704f2bc864d8
Contents?: true
Size: 1.34 KB
Versions: 5
Compression:
Stored size: 1.34 KB
Contents
# frozen_string_literal: true module Dsu module Presenters module Import module Messages def display_import_prompt raise NotImplementedError end def display_import_file_not_exist_message puts apply_theme(I18n.t('subcommands.import.messages.file_not_exist', file_path: import_file_path), theme_color: color_theme.info) end def display_nothing_to_import_message puts apply_theme(I18n.t('subcommands.import.messages.nothing_to_import'), theme_color: color_theme.info) end private def display_cancelled_message puts apply_theme(I18n.t('subcommands.import.messages.cancelled'), theme_color: color_theme.info) end def display_import_messages(import_results) import_results.each_pair do |entry_group_date, errors| if errors.empty? puts apply_theme(I18n.t('subcommands.import.messages.import_success', date: entry_group_date), theme_color: color_theme.success) else errors.each do |error| puts apply_theme(I18n.t('subcommands.import.messages.import_error', date: entry_group_date, error: error), theme_color: color_theme.error) end end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems