MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / discoveryShell

Function discoveryShell

internal/providers/models.go:304–309  ·  view source on GitHub ↗
(command string)

Source from the content-addressed store, hash-verified

302}
303
304func 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
311func runListModelsCmd(ep Endpoint, epName string, getenv func(string) string) ([]string, error) {
312 ctx, cancel := context.WithTimeout(context.Background(), modelDiscoveryTimeout)

Callers 1

runListModelsCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected