Commit 3a61196f authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

command/build: Wrap the onion the right way

parent aee07999
......@@ -71,17 +71,17 @@ func (c Command) Run(env packer.Environment, args []string) int {
for i, b := range builds {
var ui packer.Ui
ui = &packer.ColoredUi{
colors[i%len(colors)],
ui,
}
ui = &packer.PrefixedUi{
fmt.Sprintf("==> %s", b.Name()),
fmt.Sprintf(" %s", b.Name()),
env.Ui(),
}
ui = &packer.ColoredUi{
colors[i % len(colors)],
ui,
}
buildUis[b.Name()] = ui
ui.Say(fmt.Sprintf("%s output will be in this color.", b.Name()))
}
......
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