Improve column display in camel:route-list and similar Karaf commands
---------------------------------------------------------------------
Key: CAMEL-4931
URL: https://issues.apache.org/jira/browse/CAMEL-4931
Project: Camel
Issue Type: Improvement
Components: karaf
Affects Versions: 2.9.0
Reporter: Reuben Garrett
Priority: Trivial
Camel's shell extensions for Karaf print poorly-formatted results in some cases
(particularly camel:route-list), impeding legibility and ease of use. It
appears that the fields are right-padded with spaces to 18 columns regardless
of maximum actual column length.
I understand there's ultimately a limit to the width of the console. However,
if the width of the console can be determined, it should be filled
appropriately; middle truncation might be an option for excessively long fields
(e.g.: "thisIsAVeryLongField...ThatHadToBePartiallyTruncated").
If the console width cannot be determined, it may still be acceptable to scan
for the longest field and set the entire column to its width in the interest of
uniform appearance.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira