Sha256: 00f9eaa1f3b33e610500428b66f34077b9b50a86a90c701c9d9f08b7c9617513

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

require 'thor'
require 'pathname'

module IosAnalytics
  class CLI < Thor
    include ::IosAnalytics::Translate
    desc 'translate', 'Exec Translate'
    option :data
    option :file
    option :appName, require: true
    option :derivedData, require: true
    def translate
      doc = trans(options[:derivedData], options[:appName])

      formatter = REXML::Formatters::Pretty.new(4)
      formatter.write(doc, STDOUT)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ios_analytics-0.0.6 lib/ios_analytics/cli.rb