[jboss-jira] [JBoss JIRA] (WFCORE-2812) ls output is unfriendly if any element in return contents is longer than terminal width

Chao Wang (JIRA) issues at jboss.org
Tue May 16 09:20:01 EDT 2017


    [ https://issues.jboss.org/browse/WFCORE-2812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407059#comment-13407059 ] 

Chao Wang commented on WFCORE-2812:
-----------------------------------

Hi [~jdenise] I did not try with '-l', I can look into this in CLI tomorrow. 
I'm not sure I follow "constraint the with of a column in SimpleTable to be of length 0", Do you mean to change in [SimpleTable.java#L82|https://github.com/wildfly/wildfly-core/blob/5ff6433a5f06051ce8c29c654e9957d463e9ce77/cli/src/main/java/org/jboss/as/cli/util/SimpleTable.java#L82] something like 

{code:java}
if(columnLengths[i] < value.length() + 1 && value.length() < terminalWidth) {
    columnLengths[i] = value.length() + 1;
}
{code}

to make output like 2nd screenshot ? 

> ls output is unfriendly if any element in return contents is longer than terminal width
> ---------------------------------------------------------------------------------------
>
>                 Key: WFCORE-2812
>                 URL: https://issues.jboss.org/browse/WFCORE-2812
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI, Security
>    Affects Versions: 3.0.0.Beta21
>            Reporter: Chao Wang
>            Assignee: Chao Wang
>         Attachments: Screenshot from 2017-05-16 17-36-21.png, ls -l.png
>
>
> When 'ls' operation is performed over 'provider-loader' element, the output is very ugly - I get many empty lines with one very long attribute value and few more attributes with simple values.
> Expected: no empty lines between printed attributes so the output does not take like 4 screen size.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list