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

Function shellCommand

internal/tools/installer.go:58–63  ·  view source on GitHub ↗

shellCommand returns the platform shell invocation for a command string.

(command string)

Source from the content-addressed store, hash-verified

56
57// shellCommand returns the platform shell invocation for a command string.
58func shellCommand(command string) (string, []string) {
59 if runtime.GOOS == "windows" {
60 return "cmd", []string{"/C", command}
61 }
62 return "/bin/sh", []string{"-c", command}
63}
64
65// Install installs the tool by executing its install_cmd through the shell.
66func Install(tool Tool, runner CommandRunner, stdout, stderr io.Writer) (int, error) {

Callers 2

InstallFunction · 0.85
UninstallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected