Sha256: 9b4859aeb46d44f805ab4dc9da99d6604e052f0bf1d9938163631f1f2f35a83f
Contents?: true
Size: 1.51 KB
Versions: 3
Compression:
Stored size: 1.51 KB
Contents
#!/usr/bin/env ruby require "ibtoolTranslation/version" require "ibtoolTranslation" require "thor" module IbtoolTranslation #= IbtoolTranslation CLI class CLI < Thor default_task :update option :dir, :type => :string, :aliases => '-d',:required => true, :desc => 'directory of the reference' option :string, :type => :boolean, :aliases => '-s', :default => false, :desc => 'use localizable strings' option :from, :type => :string , :aliases => '-f',:required => true, :desc => 'storyboard of the reference' option :to, :type => :array, :aliases => '-t',:required => true, :desc => 'storyboards of the result' desc "update", "update storyboard" def update IbtoolTranslation::Core.new.update(options[:dir], options[:from], options[:to], options[:string]) end option :dir, :type => :string, :aliases => '-d',:required => true, :desc => 'directory of the reference' option :string, :type => :boolean, :aliases => '-s', :default => false, :desc => 'use localizable strings' option :from, :type => :string , :aliases => '-f',:required => true, :desc => 'storyboard of the reference' option :to, :type => :array, :aliases => '-t',:required => true, :desc => 'storyboards of the result' desc "create", "create Translation.strings" def create IbtoolTranslation::Core.new.create(options[:dir], options[:from], options[:to], options[:string]) end desc "version", "version" def version p IbtoolTranslation::VERSION end end end IbtoolTranslation::CLI.start(ARGV)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ibtoolTranslation-0.0.9 | bin/ibtoolTranslation |
ibtoolTranslation-0.0.8 | bin/ibtoolTranslation |
ibtoolTranslation-0.0.7 | bin/ibtoolTranslation |