(ctx context.Context)
| 744 | } |
| 745 | |
| 746 | func (ws *WshServer) WslDefaultDistroCommand(ctx context.Context) (string, error) { |
| 747 | distro, ok, err := wsl.DefaultDistro(ctx) |
| 748 | if err != nil { |
| 749 | return "", fmt.Errorf("unable to determine default distro: %w", err) |
| 750 | } |
| 751 | if !ok { |
| 752 | return "", fmt.Errorf("unable to determine default distro") |
| 753 | } |
| 754 | return distro.Name(), nil |
| 755 | } |
| 756 | |
| 757 | /** |
| 758 | * Dismisses the WshFail Command in runtime memory on the backend |
nothing calls this directly
no test coverage detected