初始化
This commit is contained in:
13
platform/process_windows.go
Normal file
13
platform/process_windows.go
Normal file
@@ -0,0 +1,13 @@
|
||||
//go:build windows
|
||||
|
||||
package platform
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// configureHidden 同时设置 HideWindow 和 CREATE_NO_WINDOW,避免 git/wsl 查询闪出终端窗口。
|
||||
func configureHidden(cmd *exec.Cmd) {
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true, CreationFlags: 0x08000000}
|
||||
}
|
||||
Reference in New Issue
Block a user