Is there a nice Kotlin shim around `java.lang.Proc...
# server
r
Is there a nice Kotlin shim around `java.lang.Process`/`java.lang.ProcessBuilder` that has been packaged up into a library? Things I’d like: • Optionally captures stdout, stderr & exit status wrapped up as a data class as the return value • Allows piping the stdout of one subprocess as the stdin of another, and capture the final result I’m sort of looking for something like the syntax and ease of plugging other executables together that you get with bash or similar, but in Kotlin so it’s easier to actually write & test the business logic.
l
Here are the maven coordinates (available on MavenCentral) :
com.louiscad.incubator:lib-publishing-helpers:0.2.3
r
Thanks both, will check them out - desperately trying to resist the temptation to roll my own! Particularly as I suspect a really good API is going to be tougher to achieve than it naively appears…
l
Or you can also copy paste your favorite
k
🙏 1