Sha256: f3e7758175a9fd733a035b006207a88deded3d4342fa823a74751320633eb91e

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

require 'thor'
require 'thor_template/cli/help'

module ThorTemplate

  class CLI < Thor
    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

1 entries across 1 versions & 1 rubygems

Version Path
thor_template-0.0.7 lib/starter_project/lib/thor_template/cli.rb