diff options
author | kaustubh-d <kaustubh@clogeny.com> | 2013-05-10 11:19:44 +0530 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-05-13 21:43:51 -0700 |
commit | fb0ff50ecae178360d315397b3fa5eb6ec3a8492 (patch) | |
tree | d20ec43d2b9598d08373c4f81b4f0b4493165e37 /lib/chef/application | |
parent | 12a0f2fe0b6eaf563d9c0b15d6c3143309c02fd9 (diff) | |
download | chef-fb0ff50ecae178360d315397b3fa5eb6ec3a8492.tar.gz |
colored output should be disabled by default on windows
Diffstat (limited to 'lib/chef/application')
-rw-r--r-- | lib/chef/application/client.rb | 4 | ||||
-rw-r--r-- | lib/chef/application/knife.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb index 3570c6ea0a..365e58778e 100644 --- a/lib/chef/application/client.rb +++ b/lib/chef/application/client.rb @@ -58,8 +58,8 @@ class Chef::Application::Client < Chef::Application option :color, :long => '--[no-]color', :boolean => true, - :default => true, - :description => "Use colored output, defaults to enabled" + :default => !Chef::Platform.windows?, + :description => "Use colored output, defaults to enabled (windows default disabled)" option :log_level, :short => "-l LEVEL", diff --git a/lib/chef/application/knife.rb b/lib/chef/application/knife.rb index 629cd9fc5f..f92da7fb91 100644 --- a/lib/chef/application/knife.rb +++ b/lib/chef/application/knife.rb @@ -43,8 +43,8 @@ class Chef::Application::Knife < Chef::Application option :color, :long => '--[no-]color', :boolean => true, - :default => true, - :description => "Use colored output, defaults to enabled" + :default => !Chef::Platform.windows?, + :description => "Use colored output, defaults to enabled (windows default disabled)" option :environment, :short => "-E ENVIRONMENT", |