command/build: Wrap the onion the right way
This commit is contained in:
parent
aee0799988
commit
3a61196f15
|
@ -71,17 +71,17 @@ func (c Command) Run(env packer.Environment, args []string) int {
|
||||||
for i, b := range builds {
|
for i, b := range builds {
|
||||||
var ui packer.Ui
|
var ui packer.Ui
|
||||||
|
|
||||||
|
ui = &packer.ColoredUi{
|
||||||
|
colors[i%len(colors)],
|
||||||
|
ui,
|
||||||
|
}
|
||||||
|
|
||||||
ui = &packer.PrefixedUi{
|
ui = &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(),
|
||||||
}
|
}
|
||||||
|
|
||||||
ui = &packer.ColoredUi{
|
|
||||||
colors[i % len(colors)],
|
|
||||||
ui,
|
|
||||||
}
|
|
||||||
|
|
||||||
buildUis[b.Name()] = ui
|
buildUis[b.Name()] = ui
|
||||||
ui.Say(fmt.Sprintf("%s output will be in this color.", b.Name()))
|
ui.Say(fmt.Sprintf("%s output will be in this color.", b.Name()))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue