From 2e51915431c74d59e6cdb3fd8eccd156bdc38353 Mon Sep 17 00:00:00 2001 From: Sharif Nassar Date: Mon, 31 Aug 2015 15:37:09 -0700 Subject: [PATCH] Colorize the 'forces new resource' message. Sometimes in all the output from ```terraform plan```, it is difficult to see the ```(forces new resource)``` message. This patch adds a little bit of color. --- command/format_plan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/format_plan.go b/command/format_plan.go index 66df5f8c2..daf3f60aa 100644 --- a/command/format_plan.go +++ b/command/format_plan.go @@ -131,7 +131,7 @@ func formatPlanModuleExpand( newResource := "" if attrDiff.RequiresNew && rdiff.Destroy { - newResource = " (forces new resource)" + newResource = opts.Color.Color(" [red](forces new resource)") } buf.WriteString(fmt.Sprintf(