From 6379a888fb51239b9233e71406f77bc6b7b11685 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 26 Mar 2015 17:40:39 -0700 Subject: [PATCH] command/remote-{pull,push}: colorize and show success output --- command/remote_pull.go | 3 ++- command/remote_push.go | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/command/remote_pull.go b/command/remote_pull.go index 3965f0d42..bf757ccf1 100644 --- a/command/remote_pull.go +++ b/command/remote_pull.go @@ -61,7 +61,8 @@ func (c *RemotePullCommand) Run(args []string) int { c.Ui.Error(fmt.Sprintf("%s", change)) return 1 } else { - c.Ui.Output(fmt.Sprintf("%s", change)) + c.Ui.Output(c.Colorize().Color(fmt.Sprintf( + "[reset][bold][green]%s", change))) } return 0 diff --git a/command/remote_push.go b/command/remote_push.go index 259c82863..cb6b2249e 100644 --- a/command/remote_push.go +++ b/command/remote_push.go @@ -68,6 +68,8 @@ func (c *RemotePushCommand) Run(args []string) int { return 1 } + c.Ui.Output(c.Colorize().Color( + "[reset][bold][green]State successfully pushed!")) return 0 }