stash/pkg/exec/command.go

12 lines
406 B
Go

// Package exec provides functions that wrap os/exec functions. These functions prevent external commands from opening windows on the Windows platform.
package exec
import "os/exec"
// Command wraps the exec.Command function, preventing Windows from opening a window when starting.
func Command(name string, arg ...string) *exec.Cmd {
ret := exec.Command(name, arg...)
hideExecShell(ret)
return ret
}