Reporter

open class Reporter(val outPaths: MountedPaths)

Inheritors

Constructors

Link copied to clipboard
constructor(outPaths: MountedPaths)

Properties

Link copied to clipboard
Link copied to clipboard
private val memoReport: ReportT

Generates and memoizes ReportT from collected _reportUnits This should be a pure operation in that successive generations of the report yields the same result

Link copied to clipboard
private val outPaths: MountedPaths
Link copied to clipboard

_reportUnits is to be updated across stages of a runner for appending reporting information

Functions

Link copied to clipboard
fun appendToFile(relativePath: String, content: String)

Appends content to a file relative to context.outPaths.hostRoot for exporting.

Link copied to clipboard
fun compressFile(relativePath: String, compressorName: String, keepOriginal: Boolean = false): Path

Compresses a file relative to context.outPaths.hostRoot.

Link copied to clipboard
fun decompressFile(relativePath: String, keepOriginal: Boolean = false): Path

Decompresses a file relative to context.outPaths.hostRoot.

Link copied to clipboard
Link copied to clipboard

Returns the generated ReportT

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun readFromFile(relativePath: String): String
Link copied to clipboard
fun readLinesFromFile(relativePath: String): List<String>

readLinesFromFile reads files on reachable from context.outPaths.hostRoot and return the file content as lines for reporting readFromFile does the same as readLinesFromFile but returns a long string

Link copied to clipboard
fun writeToFile(relativePath: String, content: String)

writeToFile writes content to a file reachable from context.outPaths.hostRoot for exporting