All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.dankito.utils.process.ExecuteCommandResult.kt Maven / Gradle / Ivy

There is a newer version: 1.0.20
Show newest version
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"
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy