Exporting Project
data class ExportingProject(val project: Project, val lockFile: LockFile, val configFile: ConfigFile, val workingSubDir: String) : RuleContext
Rule context representing a project.
Functions
Link copied to clipboard
fun RuleContext.ExportingProject.addToCfModpackModel(projectFile: ProjectFile, modpackModel: CfModpackModel): RuleResult
Link copied to clipboard
fun RuleContext.ExportingProject.addToMrModpackModel(projectFile: ProjectFile, modpackModel: MrModpackModel): RuleResult
Link copied to clipboard
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
suspend fun exportAsOverride(force: Boolean = false, onExport: suspend (bytesCallback: suspend () -> <Error class: unknown class><ByteArray, ActionError>?, fileName: String, overridesFolder: String) -> RuleResult): RuleResult
Link copied to clipboard
Ignores this rule context.
Link copied to clipboard
Link copied to clipboard
Sets the project entry missing.