(ctx context.Context)
| 728 | } |
| 729 | |
| 730 | func (ws *WshServer) WslListCommand(ctx context.Context) ([]string, error) { |
| 731 | distros, err := wsl.RegisteredDistros(ctx) |
| 732 | if err != nil { |
| 733 | return nil, err |
| 734 | } |
| 735 | var distroNames []string |
| 736 | for _, distro := range distros { |
| 737 | distroName := distro.Name() |
| 738 | if utilfn.ContainsStr(InvalidWslDistroNames, distroName) { |
| 739 | continue |
| 740 | } |
| 741 | distroNames = append(distroNames, distroName) |
| 742 | } |
| 743 | return distroNames, nil |
| 744 | } |
| 745 | |
| 746 | func (ws *WshServer) WslDefaultDistroCommand(ctx context.Context) (string, error) { |
| 747 | distro, ok, err := wsl.DefaultDistro(ctx) |
nothing calls this directly
no test coverage detected