1
0
mirror of https://github.com/docker/cli.git synced 2026-01-15 07:40:57 +03:00

client: rearrange docker version output

Rearrange docker version output so that server output matches client
output

Docker-DCO-1.1-Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> (github: jmccrohan)
Upstream-commit: 82712ed67ef9c189ccc8837ef8469272c91f6fcf
Component: engine
This commit is contained in:
Jonathan McCrohan
2014-05-18 01:49:58 +01:00
parent 72f6d9b1b0
commit 32ad2ac698
2 changed files with 2 additions and 2 deletions

View File

@@ -385,8 +385,8 @@ func (cli *DockerCli) CmdVersion(args ...string) error {
if apiVersion := remoteVersion.Get("ApiVersion"); apiVersion != "" {
fmt.Fprintf(cli.out, "Server API version: %s\n", apiVersion)
}
fmt.Fprintf(cli.out, "Git commit (server): %s\n", remoteVersion.Get("GitCommit"))
fmt.Fprintf(cli.out, "Go version (server): %s\n", remoteVersion.Get("GoVersion"))
fmt.Fprintf(cli.out, "Git commit (server): %s\n", remoteVersion.Get("GitCommit"))
release := utils.GetReleaseVersion()
if release != "" {
fmt.Fprintf(cli.out, "Last stable version: %s", release)

View File

@@ -24,8 +24,8 @@ func TestVersionEnsureSucceeds(t *testing.T) {
"Git commit (client):",
"Server version:",
"Server API version:",
"Git commit (server):",
"Go version (server):",
"Git commit (server):",
"Last stable version:",
}