Sha256: ae8047a0d213664f09636c46c08de54e6560aa26baf48ff757b10bf7d75b1a6b

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

# coding: utf-8
Dir[File.dirname(__FILE__) + '/cli/*.rb'].each {|file| require file  }

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
  desc "daemon SUBCOMMAND ...ARGS", "Logs monitor daemon contoller"
  subcommand "daemon", CLIController
  desc "config SUBCOMMAND ...ARGS", "config tools for Splash"
  subcommand "config", Config
  desc "documentation SUBCOMMAND ...ARGS", "Documentation for Splash"
  subcommand "documentation", Documentation
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prometheus-splash-0.5.0 lib/splash/cli.rb