command/build: Change default colors

This commit is contained in:
Mitchell Hashimoto 2013-06-12 10:47:01 -07:00
parent 0f98852d4d
commit 2de0238f10
1 changed files with 5 additions and 2 deletions

View File

@ -90,10 +90,10 @@ func (c Command) Run(env packer.Environment, args []string) int {
// Compile all the UIs for the builds
colors := [5]packer.UiColor{
packer.UiColorGreen,
packer.UiColorCyan,
packer.UiColorMagenta,
packer.UiColorYellow,
packer.UiColorBlue,
packer.UiColorMagenta,
packer.UiColorCyan,
}
buildUis := make(map[string]packer.Ui)
@ -115,6 +115,9 @@ func (c Command) Run(env packer.Environment, args []string) int {
ui.Say(fmt.Sprintf("%s output will be in this color.", b.Name()))
}
// Add a newline between the color output and the actual output
env.Ui().Say("")
// Prepare all the builds
for _, b := range builds {
log.Printf("Preparing build: %s", b.Name())