Selaa lähdekoodia

Use fmt.Println for cli JSON output

Phy 5 vuotta sitten
vanhempi
sitoutus
5c01e3fa22
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      cmd/tunasynctl/tunasynctl.go

+ 2 - 2
cmd/tunasynctl/tunasynctl.go

@@ -135,7 +135,7 @@ func listWorkers(c *cli.Context) error {
 				err.Error()),
 			1)
 	}
-	fmt.Print(string(b))
+	fmt.Println(string(b))
 	return nil
 }
 
@@ -185,7 +185,7 @@ func listJobs(c *cli.Context) error {
 			fmt.Sprintf("Error printing out informations: %s", err.Error()),
 			1)
 	}
-	fmt.Print(string(b))
+	fmt.Println(string(b))
 	return nil
 }