Sybren A. Stüvel c79fe55068 Worker: Refactor the running of subprocesses
Blender and FFmpeg were run in the same way, using copy-pasted code. This
is now abstracted away into the CLI runner, which in turn is moved into
its own subpackage.

No functional changes.
2022-07-28 14:34:33 +02:00

13 lines
346 B
Go

package cli_runner
// SPDX-License-Identifier: GPL-3.0-or-later
import "context"
type LogChunker interface {
// Flush sends any buffered logs to the listener.
Flush(ctx context.Context) error
// Append log lines to the buffer, sending to the listener when the buffer gets too large.
Append(ctx context.Context, logLines ...string) error
}