https://kotlinlang.org logo
#opensource
Title
# opensource
m

mbonnin

02/22/2020, 11:31 AM
Does anyone know about open source libraries to help write command line Kotlin apps ? Clikt is great but I'm also looking at things like terminal colors, resize, progress bars, prompts, maybe ascii tables, etc..
j

jaguililla

02/23/2020, 5:32 PM
If you are looking for something like curses, check: https://github.com/Hexworks/zircon It is Java, but I guess it won't be too hard to use with Kotlin
And if you want to parse cli parameters (like getopt) you could use: http://jcommander.org
m

mbonnin

02/23/2020, 5:36 PM
Thanks! Regarding parsing parameters, I'm already deep down in Clikt. The
delegated property
usage make it very elegant in Kotlin
j

jaguililla

02/24/2020, 7:02 PM
I didn't knew Clikt, thanks!
m

mbonnin

02/24/2020, 7:06 PM
Clikt is very nice, makes me want to write plenty of cli now 🙂
2 Views