Sha256: ae4a13fdd58e8520ee734ca3aa9dd7cd1c9d9dc3217e14b89c5b18a9c635ae68

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

module Saber
  class CLI < Thor
    include Thor::Actions

    # check_unknown_options!

    # default_task :install
    class_option "no-color", :type => :boolean, :banner => "Disable colorization in output"
    class_option "verbose",  :aliases => "-V", :type => :boolean, :banner => "Enable verbose output mode"

    def initialize(*)
      super
      the_shell = (options["no-color"] ? Thor::Shell::Basic.new : shell)
      Bundler.ui = UI::Shell.new(the_shell)
      Bundler.ui.debug! if options["verbose"]
    end

    desc "clean", "clean up files doesn't in rtorrent client"
    def clean
      Task.new.clean
    end

private
  # helper methods

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
saber-0.0.1 lib/saber/cli.rb