Files
code-utils/platform/process_windows.go
2026-08-11 19:07:05 +08:00

14 lines
306 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//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}
}