lib/lono/param.rb in lono-2.0.4 vs lib/lono/param.rb in lono-2.0.5
- old
+ new
@@ -1,20 +1,18 @@
require "thor"
-module Lono
- class Param < Command
- autoload :Help, 'lono/param/help'
- autoload :Generator, 'lono/param/generator'
+class Lono::Param < Lono::Command
+ autoload :Help, 'lono/param/help'
+ autoload :Generator, 'lono/param/generator'
- class_option :verbose, type: :boolean
- class_option :noop, type: :boolean
- class_option :mute, type: :boolean
- class_option :project_root, desc: "project root to use", default: '.'
+ class_option :verbose, type: :boolean
+ class_option :noop, type: :boolean
+ class_option :mute, type: :boolean
+ class_option :project_root, desc: "project root to use", default: '.'
- desc "generate NAME", "generate parameter json file for NAME"
- long_desc Help.generate
- option :path, desc: "Name of the source that maps to the params txt file. name -> params/NAME.txt. Use this to override the params/NAME.txt convention"
- def generate
- Generator.generate_all(options)
- end
+ desc "generate NAME", "generate parameter json file for NAME"
+ long_desc Help.generate
+ option :path, desc: "Name of the source that maps to the params txt file. name -> params/NAME.txt. Use this to override the params/NAME.txt convention"
+ def generate
+ Generator.generate_all(options)
end
end