Removing Windows Server support

This commit is contained in:
Cuong Manh Le
2025-07-03 15:25:16 +07:00
committed by Cuong Manh Le
parent ba9057e466
commit 975b465e3e
14 changed files with 13 additions and 363 deletions
+8
View File
@@ -1,8 +1,10 @@
package cli
import (
"bytes"
"fmt"
"net"
"os/exec"
"slices"
"strings"
"testing"
@@ -66,3 +68,9 @@ func currentStaticDnsPowershell(iface *net.Interface) ([]string, error) {
}
return ns, nil
}
// powershell runs the given powershell command.
func powershell(cmd string) ([]byte, error) {
out, err := exec.Command("powershell", "-Command", cmd).CombinedOutput()
return bytes.TrimSpace(out), err
}