mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-11-27 07:06:54 +01:00
Added comment to func ExecAndGetLines
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user