feat: add a Start() helper function

This commit is contained in:
Jose Diaz-Gonzalez
2021-08-05 01:12:40 -04:00
parent d1728a4653
commit 39af6359be

View File

@@ -61,6 +61,13 @@ func (sc *ShellCmd) Execute() bool {
return true
}
// Start is a wrapper around exec.Command.Start()
func (sc *ShellCmd) Start() error {
sc.setup()
return sc.Command.Start()
}
// Output is a lightweight wrapper around exec.Command.Output()
func (sc *ShellCmd) Output() ([]byte, error) {
sc.setup()