MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / runCommandSilent

Function runCommandSilent

mob.go:1243–1254  ·  view source on GitHub ↗
(name string, args ...string)

Source from the content-addressed store, hash-verified

1241}
1242
1243func runCommandSilent(name string, args ...string) (string, string, error) {
1244 command := exec.Command(name, args...)
1245 if len(workingDir) > 0 {
1246 command.Dir = workingDir
1247 }
1248 commandString := strings.Join(command.Args, " ")
1249 say.Debug("Running command <" + commandString + "> in silent mode, capturing combined output")
1250 outputBytes, err := command.CombinedOutput()
1251 output := string(outputBytes)
1252 say.Debug(output)
1253 return commandString, output, err
1254}
1255
1256func runCommand(name string, args ...string) (string, string, error) {
1257 command := exec.Command(name, args...)

Callers 7

doBranchesDivergeFunction · 0.85
silentgitFunction · 0.85
silentgitignorefailureFunction · 0.85
gitFunction · 0.85
gitIgnoreFailureFunction · 0.85
gitVersionFunction · 0.85
isGitFunction · 0.85

Calls 1

DebugFunction · 0.92

Tested by

no test coverage detected