Class: Tomago::CLI

Inherits:
Command show all
Defined in:
lib/tomago/cli.rb

Instance Method Summary collapse

Methods inherited from Command

dispatch

Instance Method Details

#debug(name) ⇒ Object



30
31
32
# File 'lib/tomago/cli.rb', line 30

def debug(name)
  ProjectLauncher.new(name, debug: true)
end

#hello(name = "you") ⇒ Object



9
10
11
12
# File 'lib/tomago/cli.rb', line 9

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

#launch(name) ⇒ Object



25
26
27
# File 'lib/tomago/cli.rb', line 25

def launch(name)
  ProjectLauncher.new(name)
end

#new(name) ⇒ Object



20
21
22
# File 'lib/tomago/cli.rb', line 20

def new(name)
  ProjectGenerator.new(name)
end

#versionObject



15
16
17
# File 'lib/tomago/cli.rb', line 15

def version
  puts Tomago::VERSION
end