Sha256: cefb5b81b230afb594562fae4ecc35e171cf8b17ab5eb2dbf03fe30c49dc7dd0

Contents?: true

Size: 401 Bytes

Versions: 3

Compression:

Stored size: 401 Bytes

Contents

require "thor"
require "thor_template/cli/help"

module ThorTemplate

  class CLI < Command
    class_option :verbose, type: :boolean
    class_option :noop, type: :boolean

    desc "hello NAME", "say hello to NAME"
    long_desc Help.hello
    option :from, desc: "from person"
    def hello(name)
      puts "from: #{options[:from]}" if options[:from]
      puts "Hello #{name}"
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thor_template-2.0.2 lib/starter_project/lib/thor_template/cli.rb
thor_template-2.0.1 lib/starter_project/lib/thor_template/cli.rb
thor_template-2.0.0 lib/starter_project/lib/thor_template/cli.rb