zio-cli
picocli
zio-cli | picocli | |
---|---|---|
2 | 29 | |
125 | 4,714 | |
0.0% | - | |
7.3 | 8.8 | |
8 days ago | 6 days ago | |
Scala | Java | |
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.
zio-cli
-
Creating a bash completion script (2018)
>It would almost be easier to modify the bash source itself to read and use a regular grammar
It's an interesting idea that we're using for zio-cli [1].
[1] https://github.com/zio/zio-cli/pull/119
-
Recommended CLI parsing libraries
I know this is at very early stage, no docs, not recommended for prod use but you may want to add zio-cli into your watch list.
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."
https://picocli.info/quick-guide.html
-
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"
What are some alternatives?
decline - A composable command-line parser for Scala.
Spring Shell 3 - Spring based shell
Scallop - a simple Scala CLI parsing library
JCommander - Command line parsing framework for Java
case-app - Type-level & seamless command-line argument parsing for Scala
args4j - args4j
Git - Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (https://gitgitgadget.github.io/). Please follow Documentation/SubmittingPatches procedure for any of your improvements.
Airline - Java annotation-based framework for parsing Git like command line structures
cleo - Cleo allows you to create beautiful and testable command-line interfaces.
JLine - JLine is a Java library for handling console input.
autocomplete - IDE-style autocomplete for your existing terminal & shell
JewelCLI - JewelCli uses an annotated interface definition to automatically parse and present command line arguments