Git Repository
Stackyard
Stackyard scannt lokale Entwicklungsordner und bündelt Projekte, Git-Status, TODOs, Toolchains, Docker-Compose-Setups, Datei- und Launcher-Funktionen sowie Operations-Informationen in einer lokalen WebUI.
HTTPS
https://zanvex.de/git/stackyard.gitinternal/operations/terminate_windows.go
Zum Verzeichnis//go:build windows
package operations
import (
"fmt"
"os"
"os/exec"
"strconv"
"strings"
)
func terminateProcess(process *os.Process) error {
out, err := exec.Command("taskkill", "/PID", strconv.Itoa(process.Pid), "/T", "/F").CombinedOutput()
if err != nil {
return fmt.Errorf("taskkill: %w: %s", err, strings.TrimSpace(string(out)))
}
return nil
}