From f9c02fadffb8d9d50bdc15871475bb9205f4f3e1 Mon Sep 17 00:00:00 2001 From: Paulo Truta Date: Thu, 10 Jun 2021 11:58:33 +0000 Subject: [PATCH] Added comment to func ExecAndGetLines --- internal/utils/utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/utils/utils.go b/internal/utils/utils.go index 12b9e07..35be882 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -55,6 +55,7 @@ func Exec(command string, args []string) string { } +// Exec : Runs a terminal Command, returns the result as a *bufio.Scanner type, split in lines and ready to parse. func ExecAndGetLines(command string, args []string) *bufio.Scanner { cmdOutput := Exec(command, args) cmdOutputReader := strings.NewReader(cmdOutput)