Sha256: 7fb81c586575d9c9a08a855527aa753bef2cdca8954d6c54d025043c4525359f

Contents?: true

Size: 342 Bytes

Versions: 5

Compression:

Stored size: 342 Bytes

Contents

require_relative 'command_base'

class I18nFlow::CLI
  class ReadConfigCommand < CommandBase
    def invoke!
      unless key
        exit_with_message(1, 'usage: i18n_flow read_config KEY')
      end

      case key
      when 'base_path'
        puts I18nFlow.config.base_path
      end
    end

    def key
      args[0]
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
i18n_flow-0.2.3 lib/i18n_flow/cli/read_config_command.rb
i18n_flow-0.2.2 lib/i18n_flow/cli/read_config_command.rb
i18n_flow-0.2.1 lib/i18n_flow/cli/read_config_command.rb
i18n_flow-0.2.0 lib/i18n_flow/cli/read_config_command.rb
i18n_flow-0.1.0 lib/i18n_flow/cli/read_config_command.rb