Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
mosaic
An experimental tool for building console UI in Kotlin using the Jetpack Compose compiler/runtime (by JakeWharton)
Hey, what exactly are you hoping to accomplish? I wrote https://github.com/varabyte/kotter which might be a solution you're interested in. It is a Kotlin-idiomatic API, inspired by Compose, which lets you write terminal applications.
Have you tried either clikt or mosaic??
Have you tried either clikt or mosaic??
By default, it produced a binary that is 24MB. I ran UPX on that and it generated a binary that is 6MB.
If you wanted to give writing a CLI a go yourself from scratch, I recommend searching for Java solutions first. Kotter itself is built on top of https://github.com/jline/jline3
Related posts
- Guides for Kotlin scripting use case
- Kotter (a Kotlin-idiomatic library for writing dynamic console application) hits 1.0!
- I've created a small library for interactive CLI UI called 'kotlin-inquirer'
- What are the real use cases that led you to use Kotlin extension functions or properties in your projects?
- Kotlin Multiplatform User Survey: Q2 2023