Note: If you plan on making a big and serious project, Kotlyn is not the library you are looking for. For big projects you probably want to use gradle. While the kotlinc
(the library which Kotlyn is based on) is pretty powerful, it's nowhere near as useful as gradle.
_ __ _ _
| | / / | | | | ๐๐๐๐๐๐
| |/ / ___ | |_| |_ _ _ __ ๐ฉต๐๐๐๐
| \ / _ \| __| | | | | '_ \ ๐ฉท๐งก๐๐
| |\ \ |_| | |_| | |_| | | | | ๐ฉท๐งก๐งก๐
\_| \_/\___/ \__|_|\__, |_| |_| ๐งก๐งก๐ฉต๐๐
__/ | ๐งก๐ฉต๐ฉต๐๐๐
|___/
Kotlyn
CURRENTLY WINDOWS ONLY!
If everything goes as planned the unix based version will be out by May 2024.
Kotlyn is a toolkit to build and run Kotlin appications from the command line. This "python package" hijacks the pypi package manager/distributor to install Kotlin's latest version on your system. Apart from installing JetBrain's kotlinc
terminal tool, Kotlyn provides a โจ new and shiny CLI โจ to run and build kotlin files.
Installation Guide
It's really easy, don't worry!
- Make sure python ๐ is installed
python --version
- Use pip to install the CLI
python -m pip install --upgrade kotlyn
- Run the setup
python -m kotlyn !setup
-
Check if the installation is correct โ
Once the setup is installed, you can just use thekotlyn
keyword to access the CLI.
kotlyn !version
Usage
CURRENTLY ALL
.KT
FILES IN THE ENTRY FILE'S DIR ARE LINKED & COMPILED
A fix/feature is on the way
After runing the setup command, you are able to use the shorthand kotlyn
instead of python -m kotlyn
.
.kt
) file
Run a kotlin (This will build the .jar
file in kotlyn's temp folder and will automatically delete it after the program has finished.
To run Main.kt
just do
kotlyn Main.kt
Main.jar
file
Build the This will build the Main.jar
file in the same directory where your entry kotlin file is located.
To build ๐ ๏ธ the Main.kt
into Main.jar
just do
kotlyn --build Main.kt