Class: LcpRuby::CLI::Main

Inherits:
Thor
  • Object
show all
Defined in:
lib/lcp_ruby/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/lcp_ruby/cli.rb', line 13

def self.exit_on_failure?
  true
end

Instance Method Details

#new(app_name) ⇒ Object



40
41
42
# File 'lib/lcp_ruby/cli.rb', line 40

def new(app_name)
  NewCommand.new(app_name, options, shell).run
end

#run_example(name = "showcase", dir = nil) ⇒ Object



51
52
53
54
# File 'lib/lcp_ruby/cli.rb', line 51

def run_example(name = "showcase", dir = nil)
  require_relative "cli/run_command"
  RunCommand.new(name, dir, options, shell).run
end

#versionObject



67
68
69
# File 'lib/lcp_ruby/cli.rb', line 67

def version
  say "lcp #{LcpRuby::VERSION}"
end