From ba359394b11059ed9af60a974eca1f210320e4af Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 23 May 2015 16:32:36 -0700 Subject: [PATCH] fix compilation --- commands.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/commands.go b/commands.go index 24bdc2b04..d3a458f16 100644 --- a/commands.go +++ b/commands.go @@ -6,6 +6,7 @@ import ( "github.com/mitchellh/cli" "github.com/mitchellh/packer/command" + "github.com/mitchellh/packer/packer" ) // Commands is the mapping of all the available Terraform commands. @@ -18,18 +19,14 @@ const ErrorPrefix = "e:" const OutputPrefix = "o:" func init() { - Ui = &cli.PrefixedUi{ - AskPrefix: OutputPrefix, - OutputPrefix: OutputPrefix, - InfoPrefix: OutputPrefix, - ErrorPrefix: ErrorPrefix, - Ui: &cli.BasicUi{Writer: os.Stdout}, - } - meta := command.Meta{ CoreConfig: &CoreConfig, EnvConfig: &EnvConfig, - Ui: Ui, + Ui: &packer.BasicUi{ + Reader: os.Stdin, + Writer: os.Stdout, + ErrorWriter: os.Stdout, + }, } Commands = map[string]cli.CommandFactory{