-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help util: replace jtextutils with asciitable #415
Conversation
* main motivation: jtextutils became vulnerable because the domain `com.massisframework` is available for sale... * also: asciitable is far better IMO
cc @Ferada |
table.addRule() | ||
table.getContext.setGridTheme(TA_GridThemes.FULL) | ||
table.setTextAlignment(TextAlignment.LEFT) | ||
table.render(width) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens when the contents are wider than 120 characters? (e.g. dataflows are wider than that all the time)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It get's split up into several lines. There's quite a few options, I went for left alignment for the text.
https://github.com/vdmeer/asciitable/?tab=readme-ov-file#text-alignment-1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(previously, the table would just expand in width to the widest cell)
n.b. I'm working on a followup change that'll pass down the terminal size to the text table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, that does look nicer 👍
Thanks for looking into that 👍 |
com.massisframework
is available for sale...