Sha256: e0c15acfa99aec0a6b34b0f5782d96145919fcf185bdcc605e19fec4284c907f
Contents?: true
Size: 859 Bytes
Versions: 2
Compression:
Stored size: 859 Bytes
Contents
#!/usr/bin/env ruby lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require_relative '../lib/zapata' description_of_generate = "'zapata generate <filename>' -s, --single option to skip app/models analysis" slop = Slop.new(help: true, banner: true) do banner('Usage: zapata [options]') on :v, :version, 'Print version.' do puts "Your version is #{Zapata::VERSION}" end command('generate', description: description_of_generate) do on(:s, :single, "Does not analyze 'app/models'", banner: true) run do |opts, args| Zapata::Revolutionist.generate_with_friendly_output(args, opts) end end run do |opts, args| if args.present? Zapata::Revolutionist.generate_with_friendly_output(args, opts) end end end puts slop.help if ARGV.empty? slop.parse
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zapata-0.1.6 | bin/zapata |
zapata-0.1.5 | bin/zapata |