Commit edc59499 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: BasicUi doesn't do machine-readable, just log

parent 03c10a9a
...@@ -54,10 +54,8 @@ type TargettedUi struct { ...@@ -54,10 +54,8 @@ type TargettedUi struct {
} }
// The BasicUI is a UI that reads and writes from a standard Go reader // The BasicUI is a UI that reads and writes from a standard Go reader
// and writer. It is safe to be called from multiple goroutines. The // and writer. It is safe to be called from multiple goroutines. Machine
// target for machine-readable output can be configured by prefixing the // readable output is simply logged for this UI.
// type of the machine readable output with the target and separating it
// with a comma.
type BasicUi struct { type BasicUi struct {
Reader io.Reader Reader io.Reader
Writer io.Writer Writer io.Writer
...@@ -232,5 +230,5 @@ func (rw *BasicUi) Error(message string) { ...@@ -232,5 +230,5 @@ func (rw *BasicUi) Error(message string) {
} }
func (rw *BasicUi) Machine(t string, args ...string) { func (rw *BasicUi) Machine(t string, args ...string) {
// TODO log.Printf("machine readable: %s %#v", t, args)
} }
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