Commit c5d539ef authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

command/build: Better prefixes

parent edab952a
...@@ -63,7 +63,7 @@ func (c Command) Run(env packer.Environment, args []string) int { ...@@ -63,7 +63,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
for _, b := range builds { for _, b := range builds {
buildUis[b.Name()] = &packer.PrefixedUi{ buildUis[b.Name()] = &packer.PrefixedUi{
fmt.Sprintf("==> %s", b.Name()), fmt.Sprintf("==> %s", b.Name()),
fmt.Sprintf("--> %s", b.Name()), fmt.Sprintf(" %s", b.Name()),
env.Ui(), env.Ui(),
} }
} }
......
...@@ -87,9 +87,9 @@ OutputLoop: ...@@ -87,9 +87,9 @@ OutputLoop:
for { for {
select { select {
case output := <-stderrChan: case output := <-stderrChan:
ui.Say(strings.TrimSpace(output)) ui.Message(strings.TrimSpace(output))
case output := <-stdoutChan: case output := <-stdoutChan:
ui.Say(strings.TrimSpace(output)) ui.Message(strings.TrimSpace(output))
case exitStatus := <-exitChan: case exitStatus := <-exitChan:
log.Printf("shell provisioner exited with status %d", exitStatus) log.Printf("shell provisioner exited with status %d", exitStatus)
break OutputLoop break OutputLoop
...@@ -99,10 +99,10 @@ OutputLoop: ...@@ -99,10 +99,10 @@ OutputLoop:
// Make sure we finish off stdout/stderr because we may have gotten // Make sure we finish off stdout/stderr because we may have gotten
// a message from the exit channel first. // a message from the exit channel first.
for output := range stdoutChan { for output := range stdoutChan {
ui.Say(output) ui.Message(output)
} }
for output := range stderrChan { for output := range stderrChan {
ui.Say(output) ui.Message(output)
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment