MCPcopy Index your code
hub / github.com/XmirrorSecurity/OpenSCA-cli / runCmd

Function runCmd

opensca/sca/python/env.go:126–134  ·  view source on GitHub ↗
(ctx context.Context, dir string, cmd string, args ...string)

Source from the content-addressed store, hash-verified

124}
125
126func runCmd(ctx context.Context, dir string, cmd string, args ...string) ([]byte, bool) {
127 if !config.Conf().Optional.Dynamic {
128 return nil, false
129 }
130 c := exec.CommandContext(ctx, cmd, args...)
131 c.Dir = dir
132 out, err := c.CombinedOutput()
133 return out, err == nil
134}

Callers 2

ParsePythonWithEnvFunction · 0.85
pipenvGraphFunction · 0.85

Calls 1

ConfFunction · 0.92

Tested by

no test coverage detected