func main()

in plugins/cmd/query-hcs-capabilities/main.go [128:150]


func main() {

	// Retrieve the Windows version information
	windowsVersion, err := getWindowsVersion()
	if err != nil {
		log.Fatalf("Failed to retrieve Windows version information: %s", err.Error())
	}

	// Query the Host Compute Service (HCS) for the list of supported schema versions
	supportedSchemas, err := getSupportedSchemas()
	if err != nil {
		log.Fatalf("Failed to retrieve the supported HCS schema version: %s", err.Error())
	}

	// Print the Windows version details and supported schema version
	fmt.Println("Operating system version:")
	fmt.Println(windowsVersion)
	fmt.Println()
	fmt.Println("Supported HCS schema versions:")
	for _, version := range supportedSchemas {
		fmt.Printf("- %d.%d", version.Major, version.Minor)
	}
}