kscript
clikt
Our great sponsors
kscript | clikt | |
---|---|---|
7 | 9 | |
2,036 | 2,373 | |
0.8% | - | |
1.7 | 8.2 | |
about 1 month ago | 4 days ago | |
Kotlin | Kotlin | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kscript
-
Using Koltin script instead of bash
You probably want to have a look at kscript. It's fixes the primary issue of kotlin script (uncompetitive startup time) by adding a cache of compiled scripts: https://github.com/kscripting/kscript
-
If I can write code outside of the main function and it'll work just fine, why would I even need the main function?
There is a community project called kscript, which can execute bare bones kotlin script files. The shebang line for that would be #!/usr/bin/env kscript. While that is one thing which can be done with Kotlin script, it is not its main purpose, its main purpose is to have a script definition in some other Kotlin program which can then execute any Kotlin script following that definition at runtime. See the official tutorial for how a Kotlin program would run such a script.
-
I've created a small library for interactive CLI UI called 'kotlin-inquirer'
I think you can run `kscript` on windows but i didn't really tried.check out kscript
-
I downloaded SDKMAN, but when I used "sdk install kotlin" to install it, it displayed "zsh: permission denied: sdk" (I used the Mac's Terminal
How exactly did you install sdk man? Wonder if it's configured correctly with the path. kscript had the sdkman install instructions for kotlin which was a dependency in my project
-
Scripting in Python vs Kotlin
Cheers to kscript!
-
Is Kotlin Native ready for CLI tools development ?
I am surprised not to see any mention of kscript https://github.com/holgerbrandl/kscript
-
Customizing your GitHub profile - Scripting
and the community-led kscript effort.
clikt
- Guides for Kotlin scripting use case
-
Kotlin CLI apps development status
Have you tried either clikt or mosaic??
-
What’s your most used tech stack?
For most CLIs, Kotlin with https://ajalt.github.io/clikt/. Would consider Go if it's a small project where portability is important, but 90% still Kotlin
- I've created a small library for interactive CLI UI called 'kotlin-inquirer'
-
Building Command Line Interfaces with Kotlin using picoCLI
picoCLI is one of the many options available to you to create CLIs on the JVM. Other possibilities include Jakarta Commons CLI or Clikt if you're using Kotlin.
-
New Project: CLI to transform Excel spreadsheets to JSON (in Kotlin)
For CLI programs in Kotlin, I suggest taking a look at kotlinx-cli or, especially, Clikt, for idiomatic Kotlin code without annotations and such. Of course, after having already written the program, you're most likely not gonna switch that out, but I just wanted to inform you about that.
-
Cli frameworks for Kotlin
I would recommend https://github.com/ajalt/clikt which is somewhat similar to click from Python world, and is written in Kotlin and for Kotlin, in contrast to Java's picocli
-
Tracking Twitter User Behavior - The Overview
To analyse the data, I again used Kotlin and combined 3 incredibly helpful tools: clikt, es-kotlin-client and plotly.kt. But more about that later.
What are some alternatives?
keplin - Secure Kotlin scripting and binary lambda-scripts
kotlinx-cli - Pure Kotlin implementation of a generic CLI parser.
CrunchyCalendar — awesome calendar widget for android apps - A beautiful material calendar with endless scroll, range selection and a lot more!
kotlin-argparser - Easy to use and concise yet powerful and robust command line argument parsing for Kotlin
KotlinW - A small wrapper for the Kotlin compiler that can be used to execute .kts scripts
kotlin-cli - Kotlin-CLI - command line interface options parser for Kotlin
dokka - API documentation engine for Kotlin
picocli - Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.
jtransc - Bytecode to source converting Java & Kotlin code into JavaScript, C++, D, C#, PHP, AS3, Dart and Haxe and run it everywhere. Also use JVM code in your favourite language as a library.
mordant - Multiplatform text styling for Kotlin command-line applications
arkenv - Type-safe Kotlin configuration by delegates