Class: Cure::Cli::GenerateCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/cure/cli/generate_command.rb

Instance Method Summary collapse

Methods inherited from Command

#call, invoke

Methods included from Log

#log_debug, #log_error, #log_info, #log_trace, #log_warn

Constructor Details

#initialize(args) ⇒ GenerateCommand

Returns a new instance of GenerateCommand.



10
11
12
# File 'lib/cure/cli/generate_command.rb', line 10

def initialize(args)
  super(args)
end

Instance Method Details

#help(ex: nil) ⇒ Object



14
15
16
17
# File 'lib/cure/cli/generate_command.rb', line 14

def help(ex: nil)
  log_error ex.message if ex && ex.is_a?(StandardError)
  log_info "\nUsage: cure generate template [name]"
end