@@ -97,7 +97,7 @@ func ExecSimple(bin string, args []string, env []string) (string, string, error)
9797
9898func ExecSimpleFromDir (dir , bin string , args []string , env []string ) (string , string , error ) {
9999 logging .Debug ("ExecSimpleFromDir: dir: %s, bin: %s, args: %#v, env: %#v" , dir , bin , args , env )
100- c := exec . Command (bin , args ... )
100+ c := Command (bin , args ... )
101101 if dir != "" {
102102 c .Dir = dir
103103 }
@@ -117,7 +117,7 @@ func ExecSimpleFromDir(dir, bin string, args []string, env []string) (string, st
117117
118118// Execute will run the given command and with optional settings for the exec.Cmd struct
119119func Execute (command string , arg []string , optSetter func (cmd * exec.Cmd ) error ) (int , * exec.Cmd , error ) {
120- cmd := exec . Command (command , arg ... )
120+ cmd := Command (command , arg ... )
121121 logging .Debug ("Executing command: %s, with args: %s" , cmd , arg )
122122 if optSetter != nil {
123123 if err := optSetter (cmd ); err != nil {
@@ -145,7 +145,7 @@ func ExecuteAndPipeStd(command string, arg []string, env []string) (int, *exec.C
145145// ExecuteAndForget will run the given command in the background, returning immediately.
146146func ExecuteAndForget (command string , args []string , opts ... func (cmd * exec.Cmd ) error ) (* os.Process , error ) {
147147 logging .Debug ("Executing: %s %v" , command , args )
148- cmd := exec . Command (command , args ... )
148+ cmd := Command (command , args ... )
149149
150150 for _ , optSetter := range opts {
151151 if err := optSetter (cmd ); err != nil {
@@ -172,7 +172,7 @@ func ExecuteAndForget(command string, args []string, opts ...func(cmd *exec.Cmd)
172172func ExecuteInBackground (command string , args []string , opts ... func (cmd * exec.Cmd ) error ) (* exec.Cmd , * bytes.Buffer , * bytes.Buffer , error ) {
173173 logging .Debug ("Executing: %s %v" , command , args )
174174
175- cmd := exec . Command (command , args ... )
175+ cmd := Command (command , args ... )
176176 var stdoutBuf , stderrBuf bytes.Buffer
177177
178178 for _ , optSetter := range opts {
0 commit comments