class ThorTemplate::CLI

Public Instance Methods

hello(name="you") click to toggle source
# File lib/starter_project/lib/thor_template/cli.rb, line 9
def hello(name="you")
  puts "from: #{options[:from]}" if options[:from]
  puts "Hello #{name}"
end
new(name) click to toggle source
# File lib/thor_template/cli.rb, line 8
def new(name)
  Generator.new(options.merge(name: name)).run
end
version() click to toggle source
# File lib/starter_project/lib/thor_template/cli.rb, line 15
def version
  puts ThorTemplate::VERSION
end