jbock
Jansi
jbock | Jansi | |
---|---|---|
7 | 4 | |
79 | 1,085 | |
- | 0.2% | |
6.8 | 6.7 | |
6 days ago | about 1 month ago | |
Java | Java | |
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.
jbock
-
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.
-
jbock 5.13 released
Hi there, cool, I didn't hope to get a reply after more than 2 days. If you could test the performance yourself that would be great, I'm not into that stuff. Obviously jbock not 100% picocli compatible, just the annotation names are similar. In fact there are many differences. Some common pitfalls are mentioned here.
-
either:1.1 and jbock:5.3 released
The either library, which has been used for validation purposes in recent jbock releases, has been released independently.
-
jbock 4.0 released
OptionalMatcher.java would certainly need to be changed, but I'm afraid that's not everything.
Jansi
- Colorize Java
-
Library like Python Rich
jansi https://github.com/fusesource/jansi Allows you to use ANSI escape colorization/handling Probably insufficient for your use case though.
-
How do I color the output in Windows CMD / console?
In my posting I forgot to add this link here https://github.com/fusesource/jansi (it's not inserted), where import org.fusesource.jansi.AnsiConsole; and AnsiConsole.systemInstall(); are mentioned. Because of this, I think it is possible, but I don't understand how to use it.
-
Introducing Konsole: A Kotlin-idiomatic library for writing dynamic command line applications
There is Jansi, but code like System.out.println(ansi().eraseScreen().fg(RED).a("Hello").fg(GREEN).a(" World").reset()); looked error prone and didn't look fun to write.
What are some alternatives?
Java ASCII Render - ASCII renderer in pure java with no external dependencies
ASCII Table - Several implementations of a text table, originally using ASCII and UTF-8 characters for borders.
Text-IO - A library for creating interactive console applications in Java
avaje-validator - POJO validation using annotation processing
kotter - A declarative, Kotlin-idiomatic API for writing dynamic console applications.
either - Functional error handling for Java
mosaic - An experimental tool for building console UI in Kotlin using the Jetpack Compose compiler/runtime
rewrite-migrate-java - OpenRewrite recipes for migrating to newer versions of Java.
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.