diff --git a/packer/environment.go b/packer/environment.go index 0cfc93fab..e311c093a 100644 --- a/packer/environment.go +++ b/packer/environment.go @@ -76,12 +76,6 @@ func (e *Environment) Cli(args []string) int { return command.Run(e, args) } -// Returns the UI for the environment. The UI is the interface that should -// be used for all communication with the outside world. -func (e *Environment) Ui() Ui { - return e.ui -} - // Prints the CLI help to the UI. func (e *Environment) PrintHelp() { // Created a sorted slice of the map keys and record the longest @@ -113,3 +107,9 @@ func (e *Environment) PrintHelp() { e.ui.Say(" %v %v\n", key, command.Synopsis()) } } + +// Returns the UI for the environment. The UI is the interface that should +// be used for all communication with the outside world. +func (e *Environment) Ui() Ui { + return e.ui +}