Skip to content

Commit 909dcbd

Browse files
authored
refactor: remove debug print statements (#68)
1 parent b3ec120 commit 909dcbd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

utils/command/command.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ import (
1515
// Deprecated: This method is not safe, sould have ensure input.
1616
func OnlyExec(cmdStr string) (string, error) {
1717
cmd := exec.Command("/bin/bash", "-c", cmdStr)
18-
fmt.Println(cmd.String())
1918
buf, err := cmd.CombinedOutput()
2019
return string(buf), err
2120
}
2221

2322
func ExecResultStr(cmdStr string) (string, error) {
2423
cmds := strings.Fields(cmdStr)
2524
cmd := exec2.Command(cmds[0], cmds[1:]...)
26-
fmt.Printf("Executing command: %s\n", cmd.String())
2725

2826
output, err := cmd.CombinedOutput()
2927
return string(output), err
@@ -32,7 +30,6 @@ func ExecResultStr(cmdStr string) (string, error) {
3230
func ExecResultStrArray(cmdStr string) ([]string, error) {
3331
cmds := strings.Fields(cmdStr)
3432
cmd := exec.Command(cmds[0], cmds[1:]...)
35-
fmt.Printf("Executing command: %s\n", cmd.String())
3633

3734
output, err := cmd.CombinedOutput()
3835
if err != nil {
@@ -96,7 +93,6 @@ func ExecuteScripts(scriptDirectory string) error {
9693

9794
func ExecStdin(stdinStr string, name string, args ...string) (string, error) {
9895
cmd := exec.Command(name, args...)
99-
fmt.Printf("Executing command: %s\n", cmd.String())
10096

10197
var buf bytes.Buffer
10298
cmd.Stdout = &buf

0 commit comments

Comments
 (0)