Added comment to func ExecAndGetLines

pull/13/head
Paulo Truta 2021-06-10 11:58:33 +00:00
parent 95d94f0809
commit f9c02fadff
1 changed files with 1 additions and 0 deletions

View File

@ -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 { func ExecAndGetLines(command string, args []string) *bufio.Scanner {
cmdOutput := Exec(command, args) cmdOutput := Exec(command, args)
cmdOutputReader := strings.NewReader(cmdOutput) cmdOutputReader := strings.NewReader(cmdOutput)