Sha256: 18e04b47f5cf0981885180f02dac3ad9a07e2d801fe5dbcb075a5100b50b65dc

Contents?: true

Size: 1.2 KB

Versions: 5

Compression:

Stored size: 1.2 KB

Contents

require "thor"
require "review/retrovert/converter"

module ReVIEW
  module Retrovert
    class CLI < Thor
      desc "convert {review_starter_configfile} {outdir}", "convert Re:VIEW Starter project to Re:VIEW project"
      method_option "force", aliases: "f", desc: 'Force output', type: :boolean
      method_option "strict", desc: 'Only process files registered in the catalog', type: :boolean
      method_option "preproc", desc: 'Execute preproc after conversion', type: :boolean
      method_option "tabwidth", desc: 'Preproc tabwidth option value', type: :numeric, default: 0
      method_option "table-br-replace", desc: '@<br>{} in table replace string (Default: empty)', type: :string, default: ''
      method_option "table-empty-replace", desc: 'empty cell(.) in table replace string (Default full-width space)', type: :string, default: ' '
      method_option "ird", desc: 'for IRD', type: :boolean
      method_option "no-image", desc: 'donot copy image', type: :boolean
      def convert(review_starter_configfile, outdir)
        Converter.execute(review_starter_configfile, outdir, options)
      end

      desc "version", "show version"
      def version()
        puts VERSION
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
review-retrovert-0.9.10 lib/review/retrovert/cli.rb
review-retrovert-0.9.9 lib/review/retrovert/cli.rb
review-retrovert-0.9.8 lib/review/retrovert/cli.rb
review-retrovert-0.9.7 lib/review/retrovert/cli.rb
review-retrovert-0.9.6 lib/review/retrovert/cli.rb