MCPcopy Index your code
hub / github.com/syncthing/syncthing / runError

Function runError

build.go:1110–1121  ·  view source on GitHub ↗
(cmd string, args ...string)

Source from the content-addressed store, hash-verified

1108}
1109
1110func runError(cmd string, args ...string) ([]byte, error) {
1111 if debug {
1112 t0 := time.Now()
1113 log.Println("runError:", cmd, strings.Join(args, " "))
1114 defer func() {
1115 log.Println("... in", time.Since(t0))
1116 }()
1117 }
1118 ecmd := exec.Command(cmd, args...)
1119 bs, err := ecmd.CombinedOutput()
1120 return bytes.TrimSpace(bs), err
1121}
1122
1123func runPrint(cmd string, args ...string) {
1124 runPrintInDir(".", cmd, args...)

Callers 7

shouldBuildSysoFunction · 0.85
getGitVersionFunction · 0.85
getBranchSuffixFunction · 0.85
buildStampFunction · 0.85
macosCodesignFunction · 0.85
currentAndLatestVersionsFunction · 0.85
tagMessageFunction · 0.85

Calls 2

NowMethod · 0.65
SinceMethod · 0.65

Tested by

no test coverage detected