Currently the only way to run a Kotlin script from the command line is:
kotlinc -script file.kts <arguments>
The kotlin
command is going to support running scripts at some point, but as the error message says, it’s not yet done.
Currently the only way to run a Kotlin script from the command line is:
kotlinc -script file.kts <arguments>
The kotlin
command is going to support running scripts at some point, but as the error message says, it’s not yet done.