← back to roto on ba3a.dev

Package-level declarations

Types

Link copied to clipboard
class ProcessResult(val exitCode: Int, val stdout: ByteArray, val stderr: String)

What a finished program left: its exit code, everything it wrote to stdout, and its stderr as text.

Link copied to clipboard
fun interface ProcessRunner

Runs an external program to completion. The one seam between Roto and the programs it drives — ffmpeg, ffprobe, a project's afterPublish command, the artist's chosen editor — so a test can stand in for the program.

Link copied to clipboard

Runs programs as operating-system processes. Stdout and stderr are drained at the same time, so a program that fills one pipe while Roto reads the other can never stall. If the calling thread is interrupted while waiting, the process is killed rather than left running.