From e2e5ce9b7629c45fb6d1080569e7b114c4ee66cf Mon Sep 17 00:00:00 2001 From: Alexander Kahn Date: Fri, 23 Apr 2010 15:34:45 -0400 Subject: [PATCH 1/2] Display a warning if the old --switch style CLI is used --- lib/compass/exec/helpers.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compass/exec/helpers.rb b/lib/compass/exec/helpers.rb index b10e2311..be77022c 100644 --- a/lib/compass/exec/helpers.rb +++ b/lib/compass/exec/helpers.rb @@ -5,6 +5,7 @@ module Compass::Exec if Compass::Commands.command_exists? arguments.first SubCommandUI else + Haml::Util.haml_warn "WARNING: This interface is deprecated. Please use the new subcommand interface.\nSee `compass help` for more information.\n" SwitchUI end end From 887cbfc61cb6619c05e000982175ae5da3a92c94 Mon Sep 17 00:00:00 2001 From: Alexander Kahn Date: Fri, 23 Apr 2010 15:40:09 -0400 Subject: [PATCH 2/2] Make old CLI deprecation warning red --- lib/compass/exec/helpers.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/compass/exec/helpers.rb b/lib/compass/exec/helpers.rb index be77022c..11d31dd6 100644 --- a/lib/compass/exec/helpers.rb +++ b/lib/compass/exec/helpers.rb @@ -5,7 +5,9 @@ module Compass::Exec if Compass::Commands.command_exists? arguments.first SubCommandUI else - Haml::Util.haml_warn "WARNING: This interface is deprecated. Please use the new subcommand interface.\nSee `compass help` for more information.\n" + Compass::Logger.new.red do + Haml::Util.haml_warn "WARNING: This interface is deprecated. Please use the new subcommand interface.\nSee `compass help` for more information.\n" + end SwitchUI end end