Class: CLI
Overview
The CLI Command structure for Thor
Class Method Summary collapse
-
.exit_on_failure? ⇒ Boolean
callback for managing ARGV errors.
Instance Method Summary collapse
-
#initialize(*args) ⇒ CLI
constructor
Constructor override to manage debug, colors and emoji options for logger.
Constructor Details
#initialize(*args) ⇒ CLI
Constructor override to manage debug, colors and emoji options for logger
13 14 15 16 17 18 19 20 21 |
# File 'lib/splash/cli.rb', line 13 def initialize(*args) super log = get_logger [:colors.to_s] log.level = :debug if [:debug] log.emoji = [:emoji.to_s] log.color = [:colors.to_s] log.debug "DEBUG activated" if [:debug] end |
Class Method Details
.exit_on_failure? ⇒ Boolean
callback for managing ARGV errors
8 9 10 |
# File 'lib/splash/cli.rb', line 8 def self.exit_on_failure? true end |