Update main.go
move machine readable comment to a more logical place.
This commit is contained in:
parent
d177a2647a
commit
cda87d777f
2
main.go
2
main.go
|
@ -182,6 +182,7 @@ func wrappedMain() int {
|
||||||
|
|
||||||
var ui packer.Ui
|
var ui packer.Ui
|
||||||
if machineReadable {
|
if machineReadable {
|
||||||
|
// Setup the UI as we're being machine-readable
|
||||||
ui = &packer.MachineReadableUi{
|
ui = &packer.MachineReadableUi{
|
||||||
Writer: os.Stdout,
|
Writer: os.Stdout,
|
||||||
}
|
}
|
||||||
|
@ -201,7 +202,6 @@ func wrappedMain() int {
|
||||||
fmt.Fprintf(os.Stderr, "No tty available: %s\n", err)
|
fmt.Fprintf(os.Stderr, "No tty available: %s\n", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Setup the UI if we're being machine-readable
|
|
||||||
ui = &packer.BasicUi{
|
ui = &packer.BasicUi{
|
||||||
Reader: os.Stdin,
|
Reader: os.Stdin,
|
||||||
Writer: os.Stdout,
|
Writer: os.Stdout,
|
||||||
|
|
Loading…
Reference in New Issue