com.lightningkite.khrysalis.util.ProcessBuilder.ext.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-compiler-plugin-common Show documentation
Show all versions of kotlin-compiler-plugin-common Show documentation
Common translational tools between Typescript and Swift.
The newest version!
package com.lightningkite.khrysalis.util
import java.io.File
fun Process.correctedFileOutput(file: File): Process {
this.inputStream.use { i -> file.outputStream().use { o -> i.copyTo(o) } }
return this
}
fun Process.readInto(setter: (String)->Unit): Process {
setter(this.inputStream.reader().readText())
return this
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy