Sha256: 6eb1dc971b8283aa3d3dbb3a8dae14c5fe6d263cbd530440974b097cef3918ed
Contents?: true
Size: 649 Bytes
Versions: 3
Compression:
Stored size: 649 Bytes
Contents
require 'thor' module Moblues class CLI < Thor desc 'generate', 'generate the machine and human files for entities contained in a Core Data model' option :model, :required => true, :desc => 'Core Data model path' option :human, :required => true, :desc => 'Path where the human files will be stored' option :machine, :required => true, :desc => 'Path where the machine files will be stored' option :lang, :default => 'objc', :desc => 'The language used to generate the files (objc or swift)' def generate Moblues.generate(options[:model], options[:human], options[:machine], options[:lang].to_sym) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
moblues-0.4.0 | lib/moblues/cli.rb |
moblues-0.3.0 | lib/moblues/cli.rb |
moblues-0.2.0 | lib/moblues/cli.rb |