Class: ThorTemplate::CLI

Inherits:
Command
  • Object
show all
Defined in:
lib/thor_template/cli.rb,
lib/thor_template/cli/help.rb,
lib/starter_project/lib/thor_template/cli.rb,
lib/starter_project/lib/thor_template/cli/help.rb

Defined Under Namespace

Classes: Help

Instance Method Summary collapse

Methods inherited from Command

dispatch

Instance Method Details

#hello(name) ⇒ Object



13
14
15
16
# File 'lib/starter_project/lib/thor_template/cli.rb', line 13

def hello(name)
  puts "from: #{options[:from]}" if options[:from]
  puts "Hello #{name}"
end

#new(name) ⇒ Object



12
13
14
# File 'lib/thor_template/cli.rb', line 12

def new(name)
  Generator.new(options.merge(name: name)).run
end