diff --git a/command/fmt.go b/command/fmt.go index 289ec9834..09f75f266 100644 --- a/command/fmt.go +++ b/command/fmt.go @@ -280,7 +280,7 @@ func (f *FormatCommand) processFile(path string, r io.Reader) { } if f.writeStdout { - f.Ui.Output(string(out)) + formattedFile.WriteTo(os.Stdout) } }