Sha256: 836ba2343452f2a7658e76ff7443dc3bc2bd0ac1b67232c89a9a64834a18d289
Contents?: true
Size: 612 Bytes
Versions: 3
Compression:
Stored size: 612 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'optparse' require 'ar2gostruct' OptionParser.new do |opt| opt.banner = "Usage: annotate [options] [model_file]*" opt.on('-v', '--version', "Show the current version of this gem") do puts "ar2gostruct v#{Ar2gostruct.version}"; exit end opt.on('--orm orm', "Specify ORM. Currently supports only qbs") do |orm| ENV['orm'] = orm.to_s end opt.on('--model-dir dir', "Model files stored in dir rather than app/models") do |dir| ENV['model_dir'] = dir.to_s end opt.parse!(ARGV) end Ar2gostruct.load Ar2gostruct.convert!
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ar2gostruct-0.0.5 | bin/ar2gostruct |
ar2gostruct-0.0.4 | bin/ar2gostruct |
ar2gostruct-0.0.3 | bin/ar2gostruct |