-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix docker version output alignment #965
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
vdemeester
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.
LGTM 🐫
|
Or do we want "client" and "server" columns to be aligned? (guess we can do so by making the "min" width bigger) |
cli/command/system/version.go
Outdated
| err = err2 | ||
| } | ||
| dockerCli.Out().Write([]byte{'\n'}) | ||
| buffer.WriteTo(t) |
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.
Why do you need a buffer here? Can't you use t as the first arg to tmpl.Execute ?
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.
Oh! was debugging, looks like I don't need it here anymore no.
Use tabwriter to print the version output Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
69003e9 to
48eb7a0
Compare
dnephin
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.
LGTM
seemethere
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.
LGTM


closes #964
closes #769
closes #913
Use tabwriter to print the version output
@tiborvass I tried using a tab writer, and this seems to work correctly; do you know what bug you ran into?
Output with this change: