Sha256: 84127758ff14c72058bb77f2fe5dbb30292d94616f0aa9df3dbdc8008003fa3f

Contents?: true

Size: 710 Bytes

Versions: 5

Compression:

Stored size: 710 Bytes

Contents

require 'thor'
require 'colorize'
require 'j2j/converter'
require 'j2j/version'
require 'thor/group'


module J2j
  class Cli < Thor

    include Thor::Actions

    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 => 'Output folder', :default => 'out'
    def 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

5 entries across 5 versions & 1 rubygems

Version Path
j2j-0.2.6 lib/j2j.rb
j2j-0.2.5 lib/j2j.rb
j2j-0.2.4 lib/j2j.rb
j2j-0.2.3 lib/j2j.rb
j2j-0.2.1 lib/j2j.rb