(name string)
| 77 | } |
| 78 | |
| 79 | func validateConnectionName(name string) error { |
| 80 | if !strings.HasPrefix(name, "wsl://") { |
| 81 | _, err := remote.ParseOpts(name) |
| 82 | if err != nil { |
| 83 | return fmt.Errorf("cannot parse connection name: %w", err) |
| 84 | } |
| 85 | } |
| 86 | return nil |
| 87 | } |
| 88 | |
| 89 | func getAllConnStatus() ([]wshrpc.ConnStatus, error) { |
| 90 | var allResp []wshrpc.ConnStatus |
no test coverage detected