net.dankito.utils.process.ExecuteCommandResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-utils Show documentation
Show all versions of java-utils Show documentation
Some basic utils needed in many projects
package net.dankito.utils.process
open class ExecuteCommandResult(val exitCode: Int, val outputLines: List, val errorLines: List) {
val successful: Boolean = exitCode == 0
val output: String = outputLines.joinToString("\r\n")
val errors: String = errorLines.joinToString("\r\n")
override fun toString(): String {
return "Successful? $successful ($exitCode): $output. Errors: $errors"
}
}