https://kotlinlang.org logo
#scripting
Title
# scripting
s

starke

06/24/2022, 7:56 PM
Related question: is there a way to execute another kotlin/other script from a
main.kts
script? E.g. If I have
script1.main.kts
and want to execute
script2.main.kts
from inside that script. Hopefully in a way that I can pass arguments too. 🙏
Here’s the solution I figured out, in case anyone else stumbles across this post while looking for the same info I’m using
java.lang.ProcessBuilder
to execute the commands. It’s pretty tedious to do it that way, but luckily the community has created this really great library to make it easier: kotlin-process
4 Views