MCPcopy Index your code
hub / github.com/getlantern/sysproxy / run

Function run

sysproxy.go:127–134  ·  view source on GitHub ↗
(cmd *exec.Cmd)

Source from the content-addressed store, hash-verified

125}
126
127func run(cmd *exec.Cmd) error {
128 out, err := cmd.CombinedOutput()
129 if err != nil {
130 return fmt.Errorf("unable to execute %v: %s\n%s", cmd.Path, err, string(out))
131 }
132 log.Debugf("Command %v output %v", cmd.Path, string(out))
133 return nil
134}
135
136func verify(expected string) error {
137 cmd := be.Command("show")

Callers 3

ensureElevatedOnDarwinFunction · 0.85
OnFunction · 0.85
OffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected