conner
07/18/2023, 11:48 AMkotlin
) with a script "preloaded"? I can pipe a script in via stdin, but the repl exits immediately. I want to set up a repl that already has some classes imported / values defined.conner
07/18/2023, 11:50 AM:load
from a kotlin function would also be useful (via reflection or some other means).CLOVIS
07/18/2023, 12:15 PMconner
07/18/2023, 12:28 PMCLOVIS
07/18/2023, 12:28 PMCLOVIS
07/18/2023, 12:31 PMfunction input() {
echo ":load your_file"
while true; do
read line
echo $line
done
}
input | kotlin
but that's not greatCLOVIS
07/18/2023, 12:33 PMconner
07/18/2023, 12:44 PMhho
07/18/2023, 2:54 PMKlitos Kyriacou
07/18/2023, 3:37 PM