Sha256: 74303bed2a906830248250393ac316aa153d2b8c0888cda3b5eaeb3545720b6b

Contents?: true

Size: 294 Bytes

Versions: 9

Compression:

Stored size: 294 Bytes

Contents

require 'thor'
require 'delegate'
require 'singleton'

module Donjon
  class Shell < SimpleDelegator
    include Singleton

    def initialize
      shell = if $stdout.tty?
        Thor::Shell::Color.new
      else
        Thor::Shell::Basic.new
      end
      super(shell)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
donjon-2.0.1 lib/donjon/shell.rb
donjon-2.0.0 lib/donjon/shell.rb
donjon-1.0.1 lib/donjon/shell.rb
donjon-1.0.0 lib/donjon/shell.rb
donjon-0.0.5 lib/donjon/shell.rb
donjon-0.0.4 lib/donjon/shell.rb
donjon-0.0.3 lib/donjon/shell.rb
donjon-0.0.2 lib/donjon/shell.rb
donjon-0.0.1 lib/donjon/shell.rb