mirror of https://github.com/databricks/cli.git
Remove \r from new line print statments (#509)
## Changes Removes carriage character from new line prints for json output mode and sync events ## Tests Manually
This commit is contained in:
parent
5c23c430be
commit
f2a2d058d1
|
@ -46,7 +46,7 @@ func textOutput(ctx context.Context, ch <-chan sync.Event, w io.Writer) {
|
|||
// Sync events produce an empty string if nothing happened.
|
||||
if str := e.String(); str != "" {
|
||||
bw.WriteString(str)
|
||||
bw.WriteString("\r\n")
|
||||
bw.WriteString("\n")
|
||||
bw.Flush()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ func renderJson(w io.Writer, v any) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = w.Write([]byte("\r\n"))
|
||||
_, err = w.Write([]byte("\n"))
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ func isSHA1(s string) bool {
|
|||
}
|
||||
|
||||
func LoadReferenceFile(path string) (*Reference, error) {
|
||||
// read referebce file content
|
||||
// read reference file content
|
||||
b, err := os.ReadFile(path)
|
||||
if os.IsNotExist(err) {
|
||||
return nil, nil
|
||||
|
|
Loading…
Reference in New Issue