lib/guignol/shell.rb in guignol-0.3.3 vs lib/guignol/shell.rb in guignol-0.3.4
- old
+ new
@@ -12,10 +12,14 @@
def self.start
super(ARGV, :shell => shared_shell)
end
def self.shared_shell
- @shared_shell ||= Thor::Base.shell.new
+ @shared_shell ||= if $stdout.tty?
+ Thor::Shell::Color.new
+ else
+ Thor::Shell::Basic.new
+ end
end
def self.exit_on_failure?
true
end