Sha256: 64b9656b19362201681f96bf95a7e4efe1e74ddffffd3309fbeeaf65d084d7f4
Contents?: true
Size: 909 Bytes
Versions: 1
Compression:
Stored size: 909 Bytes
Contents
require 'thor' require 'colorize' require 'j2j/converter' require 'j2j/version' require 'thor/group' module J2j class Cli < Thor include Thor::Actions no_commands do def log(str) puts str if options[:verbose] end end def self.source_root File.dirname(__FILE__) end desc 'path/to/file.json', 'indicate the path to the file.json' class_option :root_class, :aliases => '-r', :default => 'Example.java' class_option :package, :aliases => '-p', :default => 'com.example' class_option :output, :aliases => '-o', :description => 'Number to call', :default => 'out' def json(path_to_json) puts "JSON: #{path_to_json}" convert(path_to_json, options) end # map %w[--version -v] => :__print_version # desc "--version, -v", "print the version" # def __print_version # puts J2j::VERSION # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
j2j-0.1.1 | lib/j2j.rb |