Explorar o código

Use fmt.Println for cli JSON output

Phy %!s(int64=5) %!d(string=hai) anos
pai
achega
5c01e3fa22
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
 }