lib/splash/cli.rb in prometheus-splash-0.5.3 vs lib/splash/cli.rb in prometheus-splash-0.6.0

- old
+ new

@@ -1,14 +1,17 @@ # coding: utf-8 Dir[File.dirname(__FILE__) + '/cli/*.rb'].each {|file| require file } +# The CLI Command structure for Thor class CLI < Thor + + # callback for managing ARGV errors def self.exit_on_failure? true end - + # Constructor override to manage debug, colors and emoji options for logger def initialize(*args) super log = get_logger options[:colors.to_s] log.level = :debug if options[:debug] @@ -28,15 +31,16 @@ subcommand "commands", Commands desc "logs SUBCOMMAND ...ARGS", "Managing Files/Logs supervision" subcommand "logs", Logs desc "processes SUBCOMMAND ...ARGS", "Managing processes supervision" subcommand "processes", Processes - desc "daemon SUBCOMMAND ...ARGS", "Splash daemon contoller" + desc "daemon SUBCOMMAND ...ARGS", "Splash daemon controller" subcommand "daemon", CLIController desc "config SUBCOMMAND ...ARGS", "Config tools for Splash" subcommand "config", Config desc "documentation SUBCOMMAND ...ARGS", "Documentation for Splash" subcommand "documentation", Documentation - + desc "webadmin SUBCOMMAND ...ARGS", "Splash Webadmin daemon controller" + subcommand "webadmin", WebAdmin end