MCPcopy Index your code
hub / github.com/perkeep/perkeep / runPrecommitHook

Method runPrecommitHook

dev/devcam/test.go:160–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func (c *testCmd) runPrecommitHook() error {
161 cmdBin, err := osutil.LookPathGopath("devcam")
162 if err != nil {
163 return err
164 }
165 out, err := exec.Command(cmdBin, "hook", "pre-commit", "test").CombinedOutput()
166 if err != nil {
167 fmt.Println(string(out))
168 }
169 return err
170
171}

Callers 1

RunCommandMethod · 0.95

Calls 3

LookPathGopathFunction · 0.92
PrintlnMethod · 0.80
CommandMethod · 0.65

Tested by

no test coverage detected