-
Notifications
You must be signed in to change notification settings - Fork 768
Hide columns in the list command #1266
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
Conversation
8c2fd9d to
8c7349d
Compare
|
Thanks, but needs rebase |
4b74383 to
0839624
Compare
|
Found a regression: The LGTM other than that. |
|
I'd also like to see unit tests |
No regression, it was separate features. But we can make the arch/type dedup depend on width too ? |
fa953cd to
d9aab45
Compare
I think I'm find with the I don't think it adds any value in that situation, which I expect is going to be rather common. |
|
Lints are failing |
d9aab45 to
7387f0b
Compare
Needed to upgrade my |
I never found any value from the SSH column, but maybe it has some ? Especially the You need to use But we can hide the arch and vmtype again, sure. |
I agree, but maybe we should leave this for future discussion / another PR, so we can get this change wrapped up and merged? |
|
Ok, so let's autohide again and see how that goes. |
That's not what we agreed on, we agreed to auto-hide the ARCH column if all values are identical to the local arch. I thought that was the only remaining change, and that's why I didn't want to open the discussion to include the SSH column as well. |
|
Just that it always shows the vm type, even if there is only one vm type (on Linux) |
2628c62 to
a14e280
Compare
AkihiroSuda
left a comment
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.
Thanks
|
Sorry needs rebase |
jandubois
left a comment
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.
ARCH should only be hidden when all instances use the host arch.
3945c3e to
35bd4ad
Compare
|
Did the rebase and the simple edits, others are left todo. |
Should this PR be marked as a draft? |
If all the instances have the same type or arch, then don't display the column - unless requested. Only hide the arch if it is the same as host arch. Emulated instances all show their arch by default. Signed-off-by: Anders F Björklund <[email protected]>
35bd4ad to
4e6fde9
Compare
If the terminal width does not fit all the list columns, then hide "dir" column - unless requested. Without terminal (or unknown), hide the identical. If the terminal is wide enough, then don't hide. Signed-off-by: Anders F Björklund <[email protected]>
4e6fde9 to
07456b9
Compare
AkihiroSuda
left a comment
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.
Thanks
|
@jandubois LGTY? |
jandubois
left a comment
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.
Thanks, LGTM!
Hide identical columns in the list command
If all the instances have the same type or arch,
then don't display the column - unless requested.
Hide the directory column on narrow terminal
If the terminal width does not fit all the list
columns, then hide "dir" column - unless requested.
before
after
One can use the
--all-fieldsflag, to get the old behaviour back again.On a wide enough terminal, the table output is the same as before.
Closes #1204