I saw that Clique 4.1.0 is out. What does the update fix, and is it useful alongside an argument parser?
What's changed in Clique 4.1.0 for Java CLI output?
Answers
It's mostly a correctness release for the zero-dependency styling library. Emoji and CJK text should take the right amount of terminal space in dividers, tables, and frames. Gradients also no longer corrupt emoji.
OSC 8 hyperlinks get a width fix too. The link URL no longer counts toward the visible width, which should help linked text line up in tables and frames.
Reply to this answer
The table change is worth noting if you update cells after creating a table. Column widths are now calculated when the table renders, so replacing a long value with a shorter one can shrink the column. The public table API hasn't changed.
Frames also avoid repeatedly rendering nested components, and Tree and ItemList now detect cycles that could previously cause a StackOverflowError.
Reply to this answer
Color disabling got a cleanup. NO_COLOR and disableCliqueColors() are now respected throughout the library, including components that previously leaked reset codes. That's useful when output needs to stay free of color escape codes.
Reply to this answer
For argument parsing, picocli is one option to look at. Clique focuses on styling CLI output, so the two address different parts of a command-line application rather than doing the same job.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions