From bb1c03b1a1dec6fcb07436c909a52f22ab60fc40 Mon Sep 17 00:00:00 2001 From: mahdi Date: Tue, 7 Nov 2023 01:56:10 +0100 Subject: [PATCH] sys - amend RunInteractiveCmd --- sys/sys.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/sys.go b/sys/sys.go index ff5b2a3..3f20fe0 100644 --- a/sys/sys.go +++ b/sys/sys.go @@ -60,7 +60,7 @@ func ManageStatusCmd(cmd *exec.Cmd, err error) int { } func RunInteractiveCmd(cmd string, withStderr bool) int { - fmt.Printf(" == go before command : %s\n", cmd) + // fmt.Printf(" == go before command : %s\n", cmd) icmd := exec.Command("bash", "-c", cmd) icmd.Stdin = os.Stdin icmd.Stdout = os.Stdout @@ -71,7 +71,7 @@ func RunInteractiveCmd(cmd string, withStderr bool) int { } func PipeCmd(cmd1 *exec.Cmd, cmd2 *exec.Cmd, buffers ...io.Writer) { - fmt.Println("> Pipe Commands") + // fmt.Println("> Pipe Commands") if len(buffers) > 0 { pr, pw := io.Pipe() cmd1.Stdout = pw @@ -96,7 +96,7 @@ func PipeCmd(cmd1 *exec.Cmd, cmd2 *exec.Cmd, buffers ...io.Writer) { if err2 != nil { fmt.Printf("error2 : %v\n", err2) } - fmt.Println("< Pipe Commands") + // fmt.Println("< Pipe Commands") } }