MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / AutoBackgroundIfBlocking

Function AutoBackgroundIfBlocking

tools/bash/background.go:343–348  ·  view source on GitHub ↗
(startTime time.Time, manager *BackgroundManager, command, description, cmd string)

Source from the content-addressed store, hash-verified

341 }
342 output := stdout.String()
343 if stderr.Len() > 0 {
344 output += "\n[stderr]\n" + stderr.String()
345 }
346 output = FormatExitCode(task.Command, exitCode) + "\n\n" + output
347 _ = os.WriteFile(task.OutputPath, []byte(output), 0o600)
348
349 m.finishTask(task.TaskID, "completed", &exitCode)
350}
351

Callers

nothing calls this directly

Calls 2

CanAcceptMethod · 0.80

Tested by

no test coverage detected