fix silent windows

This commit is contained in:
KingKDot
2026-04-06 18:20:52 -05:00
parent 22fad89699
commit d998aa9c7f
3 changed files with 11 additions and 0 deletions
@@ -13,6 +13,13 @@ import (
"golang.org/x/sys/windows"
)
func hideCmdWindow(cmd *exec.Cmd) {
cmd.SysProcAttr = &syscall.SysProcAttr{
HideWindow: true,
CreationFlags: windows.CREATE_NO_WINDOW,
}
}
func startSilentProcess(command string, args []string, cwd string, hideWindow bool) error {
ext := strings.ToLower(filepath.Ext(command))