()
| 421 | var systemSummary string |
| 422 | |
| 423 | func GetSystemSummary() string { |
| 424 | systemSummaryOnce.Do(func() { |
| 425 | ctx, cancelFn := context.WithTimeout(context.Background(), 2*time.Second) |
| 426 | defer cancelFn() |
| 427 | systemSummary = getSystemSummary(ctx) |
| 428 | }) |
| 429 | return systemSummary |
| 430 | } |
| 431 | |
| 432 | func ValidateWshSupportedArch(os string, arch string) error { |
| 433 | if SupportedWshBinaries[fmt.Sprintf("%s-%s", os, arch)] { |
no test coverage detected