lib/review/retrovert/cli.rb in review-retrovert-0.1.0 vs lib/review/retrovert/cli.rb in review-retrovert-0.2.0

- old
+ new

@@ -3,21 +3,19 @@ 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 "force", aliases: "f", desc: 'Force output', type: :boolean + method_option "strict", desc: 'Only process files registered in the catalog', type: :boolean def convert(review_starter_configfile, outdir) Converter.execute(review_starter_configfile, outdir, options) end - desc "snake {CamelCaseString}", "convert {CamelCaseString} to {snake_case_string}" - def snake(str) - puts str - .gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2') - .gsub(/([a-z\d])([A-Z])/, '\1_\2') - .tr("-", "_") - .downcase + desc "version", "show version" + def version() + puts VERSION end + end end -end \ No newline at end of file +end