Commit ba359394 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

fix compilation

parent 9d89ca8e
...@@ -6,6 +6,7 @@ import ( ...@@ -6,6 +6,7 @@ import (
"github.com/mitchellh/cli" "github.com/mitchellh/cli"
"github.com/mitchellh/packer/command" "github.com/mitchellh/packer/command"
"github.com/mitchellh/packer/packer"
) )
// Commands is the mapping of all the available Terraform commands. // Commands is the mapping of all the available Terraform commands.
...@@ -18,18 +19,14 @@ const ErrorPrefix = "e:" ...@@ -18,18 +19,14 @@ const ErrorPrefix = "e:"
const OutputPrefix = "o:" const OutputPrefix = "o:"
func init() { func init() {
Ui = &cli.PrefixedUi{
AskPrefix: OutputPrefix,
OutputPrefix: OutputPrefix,
InfoPrefix: OutputPrefix,
ErrorPrefix: ErrorPrefix,
Ui: &cli.BasicUi{Writer: os.Stdout},
}
meta := command.Meta{ meta := command.Meta{
CoreConfig: &CoreConfig, CoreConfig: &CoreConfig,
EnvConfig: &EnvConfig, EnvConfig: &EnvConfig,
Ui: Ui, Ui: &packer.BasicUi{
Reader: os.Stdin,
Writer: os.Stdout,
ErrorWriter: os.Stdout,
},
} }
Commands = map[string]cli.CommandFactory{ Commands = map[string]cli.CommandFactory{
......
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