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.
|
// Sync events produce an empty string if nothing happened.
|
||||||
if str := e.String(); str != "" {
|
if str := e.String(); str != "" {
|
||||||
bw.WriteString(str)
|
bw.WriteString(str)
|
||||||
bw.WriteString("\r\n")
|
bw.WriteString("\n")
|
||||||
bw.Flush()
|
bw.Flush()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ func renderJson(w io.Writer, v any) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
_, err = w.Write([]byte("\r\n"))
|
_, err = w.Write([]byte("\n"))
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ func isSHA1(s string) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func LoadReferenceFile(path string) (*Reference, error) {
|
func LoadReferenceFile(path string) (*Reference, error) {
|
||||||
// read referebce file content
|
// read reference file content
|
||||||
b, err := os.ReadFile(path)
|
b, err := os.ReadFile(path)
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
|
|
Loading…
Reference in New Issue