gnodet opened a new pull request, #22219: URL: https://github.com/apache/camel/pull/22219
## Summary - Add `TerminalWidthHelper` utility that detects terminal width via JLine and provides methods for proportional column width scaling (`flexWidth`, `scaleWidth`) - Add `terminalWidth()` method to `CamelCommand` base class so all commands can access the detected width - Update all 33 command files that produce AsciiTable output to adapt their column widths based on the detected terminal width - `CatalogDoc` tables (`camel doc`) use proportional scaling across all columns for FANCY_ASCII bordered tables — the most visible improvement for narrow terminals - Process/action commands scale their flexible columns (URI, DESCRIPTION, MESSAGE, etc.) while keeping small fixed columns unchanged - On wide terminals, output is identical to before (column max widths unchanged) ## Test plan - [x] All 311 existing tests pass - [x] Code formatted and imports sorted - [ ] CI passes -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
