https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

jmfayard

09/16/2019, 4:15 PM
Hello, I would like to build a command-line tool with #kotlin-native (should I post there?) This would be a first time for me so any pointers would be appreciated. It would be something relatively simple and I need a command-line options parser, a way to parse JSON and do basic HTTP calls but that’s pretty much it.
I think I have everything I need. +1 for people writing all that documentation I found http client https://ktor.io/clients/http-client/multiplatform.html I found kotlinx.serialization https://github.com/Kotlin/kotlinx.serialization I found the MPP+Gradle documentation https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html I found https://play.kotlinlang.org/hands-on/Introduction%20to%20Kotlin%20Multiplatform/01_Introduction
o

olonho

09/16/2019, 4:48 PM
CLI library will be available out of the box in 1.3.60
👍 3
j

jmfayard

09/16/2019, 5:37 PM
@olonho Thanks for the info. What about generating Zsh and Bash completions? This is what makes all the difference between a very sleak command line tool like
twilio-cli
and unusable ones like most of the others https://www.twilio.com/docs/twilio-cli/quickstart Is that out of scope for you?
g

gildor

09/17/2019, 3:46 AM
clikt has autocompletion generation: https://ajalt.github.io/clikt/ But Kotlin Native support is not released yet, but there is a branch
👀 1
💯 2
3 Views