(startTime time.Time, manager *BackgroundManager, command, description, cmd string)
| 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 |
nothing calls this directly
no test coverage detected