MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / GetSandboxCommand

Method GetSandboxCommand

tools/bash/sandbox.go:58–70  ·  view source on GitHub ↗
(command string, config SandboxConfig, cwd string)

Source from the content-addressed store, hash-verified

56
57func (m *SandboxManager) Platform() string {
58 if m == nil {
59 return runtime.GOOS
60 }
61 return m.platform
62}
63
64func (m *SandboxManager) BackendName() string {
65 if m == nil {
66 switch runtime.GOOS {
67 case "darwin":
68 return "sandbox-exec"
69 case "linux":
70 return "bwrap"
71 default:
72 return ""
73 }

Callers 1

ExecuteMethod · 0.80

Calls 3

IsSandboxingEnabledMethod · 0.95
macosSandboxMethod · 0.95
linuxSandboxMethod · 0.95

Tested by

no test coverage detected