mirror of https://github.com/docker/cli.git
Merge pull request #3645 from thaJeztah/update_engine
info: update plugin section to show installed path
This commit is contained in:
commit
d86fce7b05
|
@ -180,11 +180,9 @@ func prettyPrintClientInfo(dockerCli command.Cli, info clientInfo) {
|
|||
fmt.Fprintln(dockerCli.Out(), " Plugins:")
|
||||
for _, p := range info.Plugins {
|
||||
if p.Err == nil {
|
||||
var version string
|
||||
if p.Version != "" {
|
||||
version = ", " + p.Version
|
||||
}
|
||||
fmt.Fprintf(dockerCli.Out(), " %s: %s (%s%s)\n", p.Name, p.ShortDescription, p.Vendor, version)
|
||||
fmt.Fprintf(dockerCli.Out(), " %s: %s (%s)\n", p.Name, p.ShortDescription, p.Vendor)
|
||||
fprintlnNonEmpty(dockerCli.Out(), " Version: ", p.Version)
|
||||
fprintlnNonEmpty(dockerCli.Out(), " Path: ", p.Path)
|
||||
} else {
|
||||
info.Warnings = append(info.Warnings, fmt.Sprintf("WARNING: Plugin %q is not valid: %s", p.Path, p.Err))
|
||||
}
|
||||
|
|
|
@ -2,8 +2,11 @@ Client:
|
|||
Context: default
|
||||
Debug Mode: false
|
||||
Plugins:
|
||||
goodplugin: unit test is good (ACME Corp, 0.1.0)
|
||||
goodplugin: unit test is good (ACME Corp)
|
||||
Version: 0.1.0
|
||||
Path: /path/to/docker-goodplugin
|
||||
unversionedplugin: this plugin has no version (ACME Corp)
|
||||
Path: /path/to/docker-unversionedplugin
|
||||
|
||||
Server:
|
||||
Containers: 0
|
||||
|
|
Loading…
Reference in New Issue