MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / isWindowsOSType

Function isWindowsOSType

internal/cli/guests.go:615–617  ·  view source on GitHub ↗

isWindowsOSType returns true when the Proxmox ostype string indicates a Windows guest. Mirrors detectOSFamily in internal/plugins/command-runner/os_detection.go.

(osType string)

Source from the content-addressed store, hash-verified

613// Windows guest. Mirrors detectOSFamily in
614// internal/plugins/command-runner/os_detection.go.
615func isWindowsOSType(osType string) bool {
616 return strings.HasPrefix(strings.ToLower(osType), "win")
617}
618
619// ── guests shell ─────────────────────────────────────────────────────────────
620

Callers 1

buildExecCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected