Sha256: 7c116d594f47eeef6f4007d22a06681a1cd1115b805081d212138d14c0f5af1f
Contents?: true
Size: 398 Bytes
Versions: 1
Compression:
Stored size: 398 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.8 | lib/starter_project/lib/thor_template/cli.rb |