picocli
clikt
Our great sponsors
picocli | clikt | |
---|---|---|
29 | 9 | |
4,698 | 2,373 | |
- | - | |
8.6 | 8.2 | |
5 days ago | 5 days ago | |
Java | Kotlin | |
Apache License 2.0 | 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.
picocli
-
GraalVM for JDK 21 is here
Picocli allows using a compiler annotation processor to generate classes at compile time instead [0].
[0]: https://github.com/remkop/picocli/blob/main/picocli-codegen/...
-
Any library you would like to recommend to others as it helps you a lot? For me, mapstruct is one of them. Hopefully I would hear some other nice libraries I never try.
Picocli is a pretty good one for writing CLI apps
-
“Why I develop on Windows”
"and there are simply no good command line input parsing libraries for Java."
Looks like author missed the most obvious and popular OSS one: https://picocli.info/
-
Java 20 / JDK 20: General Availability
The command line example gave me the "ick". It is usually preferrable to parse the command line arguments into one instance of a custom "command class", rather than into a list of things. Like jcommander, picocli or jbock do.
-
any opinion good or bed about a code that smells?
Complex argument parsing needs to be auto-generated by libraries like picocli. Even if you need something custom, it'd be quicker to write an Annotation processor from scratch than editing that file.
-
Owl: A toolkit for writing command-line user interfaces in Elixir
https://github.com/remkop/picocli
"Picocli-based applications can be ahead-of-time compiled to a GraalVM native image, with extremely fast startup time and lower memory requirements, which can be distributed as a single executable file."
-
Building a Java CLI. How can I make it more powershell-friendly
Using picocli to handle your command line options gives you the best chance to automatically generate an ArgumentCompleter script in the future, but won't help you today (other than possibly making your command line handling more standardized & easier).
-
must known frameworks/libs/tech, every senior java developer must know(?)
Picocli
-
🔍 Validate New-Caledonia Phone Numbers from cli ⌨️
Then we released a JBang! and picocli based cli that would be, on any OS running a jvm runtime :
-
📲 Inspired by Twilio we started to build our own (pico)cli to send sms
picocli : "a mighty tiny command line interface"
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?
Spring Shell 3 - Spring based shell
kotlinx-cli - Pure Kotlin implementation of a generic CLI parser.
JCommander - Command line parsing framework for Java
kotlin-argparser - Easy to use and concise yet powerful and robust command line argument parsing for Kotlin
args4j - args4j
kotlin-cli - Kotlin-CLI - command line interface options parser for Kotlin
Airline - Java annotation-based framework for parsing Git like command line structures
kscript - Scripting enhancements for Kotlin
JLine - JLine is a Java library for handling console input.
mordant - Multiplatform text styling for Kotlin command-line applications
JewelCLI - JewelCli uses an annotated interface definition to automatically parse and present command line arguments
arkenv - Type-safe Kotlin configuration by delegates