A quick way to play with kscript without having to install it.
After building a docker image that contains java, kotlin and kscript it uses it to execute the provided code or .kts file inside a container.
You can use kscript in every way described here
To make sure all cases from the aforementioned link are supported, the input is being given to a bash script that then decides how to run the container.
Clone this repository and inside the folder that was cloned run:
> chmod +x install.sh
> ./install.shThis will:
- Build a docker image that has java, kotlin and kscript installed
- Make
kscript-routerexecutable - Add it to the current user's PATH
- Create an alias for it (kscript = kscript-router)