lib/splash/cli.rb in prometheus-splash-0.4.5 vs lib/splash/cli.rb in prometheus-splash-0.5.0
- old
+ new
@@ -4,9 +4,24 @@
class CLI < Thor
def self.exit_on_failure?
true
end
+
+ def initialize(*args)
+ super
+ log = get_logger
+ options[:colors.to_s]
+ log.emoji = options[:emoji.to_s]
+ log.color = options[:colors.to_s]
+ end
+
+ class_option :quiet, :desc => "Quiet mode, limit output to :fatal", :aliases => "-q", :type => :boolean
+ class_option :emoji, :desc => "Display Emoji", :type => :boolean, :default => true
+ class_option :colors, :desc => "Display colors", :type => :boolean, :default => true
+
+
+
include CLISplash
desc "commands SUBCOMMAND ...ARGS", "Managing commands/batchs supervision"
subcommand "commands", Commands
desc "logs SUBCOMMAND ...ARGS", "Managing Files/Logs supervision"
subcommand "logs", Logs