Sha256: f97d3377834113160c48626f0c5bf8d9afeaf8d3ffeaa86fb0847a37933ab6dd

Contents?: true

Size: 597 Bytes

Versions: 3

Compression:

Stored size: 597 Bytes

Contents

require 'thor'
require 'lono_params/cli/help'

module LonoParams

  class CLI < Thor
    class_option :verbose, type: :boolean
    class_option :noop, 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: "Path of the source params txt file.  Use this to override the params/NAME.txt convention"
    option :use_previous_value, type: :boolean, default: true
    def generate(name)
      Generator.new(name, options).generate
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lono-params-0.0.3 lib/lono_params/cli.rb
lono-params-0.0.2 lib/lono_params/cli.rb
lono-params-0.0.1 lib/lono_params/cli.rb