From c5d539ef1337cfbe214eb33ac4f1af9ac1bfea27 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 3 Jun 2013 11:40:08 -0700 Subject: [PATCH] command/build: Better prefixes --- command/build/command.go | 2 +- provisioner/shell/provisioner.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/command/build/command.go b/command/build/command.go index 699c34875..acf2a3cd7 100644 --- a/command/build/command.go +++ b/command/build/command.go @@ -63,7 +63,7 @@ func (c Command) Run(env packer.Environment, args []string) int { for _, b := range builds { buildUis[b.Name()] = &packer.PrefixedUi{ fmt.Sprintf("==> %s", b.Name()), - fmt.Sprintf("--> %s", b.Name()), + fmt.Sprintf(" %s", b.Name()), env.Ui(), } } diff --git a/provisioner/shell/provisioner.go b/provisioner/shell/provisioner.go index 758552fdb..170aba46d 100644 --- a/provisioner/shell/provisioner.go +++ b/provisioner/shell/provisioner.go @@ -87,9 +87,9 @@ OutputLoop: for { select { case output := <-stderrChan: - ui.Say(strings.TrimSpace(output)) + ui.Message(strings.TrimSpace(output)) case output := <-stdoutChan: - ui.Say(strings.TrimSpace(output)) + ui.Message(strings.TrimSpace(output)) case exitStatus := <-exitChan: log.Printf("shell provisioner exited with status %d", exitStatus) break OutputLoop @@ -99,10 +99,10 @@ OutputLoop: // Make sure we finish off stdout/stderr because we may have gotten // a message from the exit channel first. for output := range stdoutChan { - ui.Say(output) + ui.Message(output) } for output := range stderrChan { - ui.Say(output) + ui.Message(output) } }