MCPcopy Create free account
hub / github.com/HashLoad/boss / runCommand

Function runCommand

core/gitWrapper/git_native.go:111–122  ·  view source on GitHub ↗
(cmd *exec.Cmd)

Source from the content-addressed store, hash-verified

109}
110
111func runCommand(cmd *exec.Cmd) error {
112 cmd.Stdout = newWriter(false)
113 cmd.Stderr = newWriter(true)
114 if err := cmd.Start(); err != nil {
115 return err
116 }
117
118 if err := cmd.Wait(); err != nil {
119 return err
120 }
121 return nil
122}
123
124type writer struct {
125 io.Writer

Callers 3

getWrapperCloneFunction · 0.85
getWrapperFetchFunction · 0.85
initSubmodulesNativeFunction · 0.85

Calls 1

newWriterFunction · 0.85

Tested by

no test coverage detected