Sha256: 8b7ee27dce09514ac97cbb600826c170e39396a7e6839e2ce07e2c69731d0101
Contents?: true
Size: 959 Bytes
Versions: 3
Compression:
Stored size: 959 Bytes
Contents
#!/usr/bin/env ruby require "udgenerator/version" require "udgenerator" require "thor" module Udgenerator #= Udgenerator CLI class CLI < Thor default_task :update option :auto_init, :type => :boolean, :aliases => '-a', :default => true, :desc => 'auto initialization. all zero or empty string, etc ...' option :input, :type => :string, :aliases => '-i', :default => "./", :required => true, :desc => 'input file' option :output, :type => :string, :aliases => '-o', :default => "./", :desc => 'output directory' option :file_name, :type => :string, :aliases => '-f', :default => "UserDefaults", :desc => 'output file name' option :swift, :type => :boolean, :aliases => '-s', :default => false, :desc => 'swift' desc "update", "update UserDefaults wrapper" def update Core.new.generator(options) end desc "version", "version" def version p VERSION end end end Udgenerator::CLI.start(ARGV)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
udgenerator-1.0.5 | exe/udgenerator |
udgenerator-1.0.4 | exe/udgenerator |
udgenerator-1.0.3 | exe/udgenerator |