Browse Source

Use fmt.Println for cli JSON output

Phy 5 years ago
parent
commit
5c01e3fa22
1 changed files with 2 additions and 2 deletions
  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
 }