github.com/2lambda123/git-lfs@v2.5.2+incompatible/subprocess/subprocess_windows.go (about) 1 // +build windows 2 3 package subprocess 4 5 import ( 6 "os/exec" 7 "syscall" 8 ) 9 10 // ExecCommand is a small platform specific wrapper around os/exec.Command 11 func ExecCommand(name string, arg ...string) *Cmd { 12 cmd := exec.Command(name, arg...) 13 cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true} 14 cmd.Env = env 15 return newCmd(cmd) 16 }