(command string)
| 302 | } |
| 303 | |
| 304 | func discoveryShell(command string) (string, []string) { |
| 305 | if runtime.GOOS == "windows" { |
| 306 | return "powershell", []string{"-NoProfile", "-Command", command} |
| 307 | } |
| 308 | return "sh", []string{"-c", command} |
| 309 | } |
| 310 | |
| 311 | func runListModelsCmd(ep Endpoint, epName string, getenv func(string) string) ([]string, error) { |
| 312 | ctx, cancel := context.WithTimeout(context.Background(), modelDiscoveryTimeout) |