Sha256: a82e1c84f8c927b8e66a478d8de7e52fea3ea06782a99634002f304a1f835a68
Contents?: true
Size: 298 Bytes
Versions: 6802
Compression:
Stored size: 298 Bytes
Contents
# frozen_string_literal: true require_relative 'rainbow/global' module Rainbow def self.new Wrapper.new(global.enabled) end self.enabled = false unless STDOUT.tty? && STDERR.tty? self.enabled = false if ENV['TERM'] == 'dumb' self.enabled = true if ENV['CLICOLOR_FORCE'] == '1' end
Version data entries
6,802 entries across 6,802 versions & 35 rubygems