Finished

data class Finished(val lockFile: LockFile, val configFile: ConfigFile, val workingSubDir: String) : RuleContext

Rule context indicating that all other actions have been finished.

Constructors

Link copied to clipboard
constructor(lockFile: LockFile, configFile: ConfigFile, workingSubDir: String)

Properties

Link copied to clipboard
open override val configFile: ConfigFile
Link copied to clipboard
open override val lockFile: LockFile
Link copied to clipboard
open override val workingSubDir: String

Functions

Link copied to clipboard
fun createFile(bytes: ByteArray, path: String, vararg subpath: String): RuleResult

Creates a new file at the specified path& returns a result.

fun createFile(bytesCallback: suspend () -> <Error class: unknown class><ByteArray, ActionError>?, path: String, vararg subpath: String): RuleResult

Lazily creates a new file at the specified path if it does not already exist, and returns a result.

Link copied to clipboard
inline fun <T> createJsonFile(value: T, path: String, vararg subpath: String, format: <Error class: unknown class> = json): RuleResult

Creates a new JSON file at the specified path& returns a result.

Link copied to clipboard

Returns an error.

Link copied to clipboard
fun getPath(): <Error class: unknown class>
fun getPath(path: String, vararg subpath: String): <Error class: unknown class>
Link copied to clipboard

Ignores this rule context.

Link copied to clipboard
fun replaceText(vararg pairs: <Error class: unknown class><String, String>): RuleResult
Link copied to clipboard
fun RuleContext.ruleResult(message: String, packaging: Packaging): RuleResult