DockerCLI/cli/command
Sebastiaan van Stijn b9e2659a05
info: update plugin section to show installed path
This updates the pretty-print format of docker info to provide more
details on installed plugins, to help users find where a specific
plugin is installed (e.g. to update it, or to uninstall it).

Before this patch:

```bash
Client:
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.8.2)
  compose: Docker Compose (Docker Inc., v2.4.1)
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
  scan: Docker Scan (Docker Inc., v0.17.0)

Server:
...
```

With this patch applied:

```bash
docker info

Client:
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.8.2
    Path:     /usr/local/lib/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.4.1
    Path:     /usr/local/lib/docker/cli-plugins/docker-compose
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-sbom
  scan: Docker Scan (Docker Inc.)
    Version:  v0.17.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-scan

Server:
...
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-06-01 12:46:07 +02:00
..
builder Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
checkpoint completion v2: some small follow-ups 2022-05-12 13:25:15 +02:00
commands remove exec, push, pull, ps, images, info from "legacy" commands 2022-04-08 16:55:39 +02:00
completion Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
config completion v2: some small follow-ups 2022-05-12 13:25:15 +02:00
container Merge pull request #3619 from vvoland/3554-initial-console-size 2022-05-18 13:28:18 +02:00
context completion v2: some small follow-ups 2022-05-12 13:25:15 +02:00
formatter Add cluster volume support 2022-05-13 20:06:11 +02:00
idresolver bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
image lint: update some nolint comments: 2022-05-13 20:50:19 +02:00
inspect linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
manifest lint: update some nolint comments: 2022-05-13 20:50:19 +02:00
network completion v2: some small follow-ups 2022-05-12 13:25:15 +02:00
node Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
plugin completion v2: some small follow-ups 2022-05-12 13:25:15 +02:00
registry completion v2: some small follow-ups 2022-05-12 13:25:15 +02:00
secret Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
service completion v2: some small follow-ups 2022-05-12 13:25:15 +02:00
stack Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
swarm Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
system info: update plugin section to show installed path 2022-06-01 12:46:07 +02:00
task linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
testdata Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
trust lint: update some nolint comments: 2022-05-13 20:50:19 +02:00
volume volume: annotate cluster-volumes flags for API version and swarm 2022-05-13 20:22:38 +02:00
cli.go cli: initializeFromClient(): detect swarm status from ping (if available) 2022-05-02 14:57:57 +02:00
cli_options.go Implement WithDefaultContextStoreConfig() DockerCliOption 2022-03-03 14:47:59 +01:00
cli_options_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
cli_test.go cli: initializeFromClient(): detect swarm status from ping (if available) 2022-05-02 14:57:57 +02:00
context.go remove obsolete mutli-orchestrator support 2022-02-22 15:28:12 +01:00
context_test.go remove obsolete mutli-orchestrator support 2022-02-22 15:28:12 +01:00
defaultcontextstore.go remove obsolete mutli-orchestrator support 2022-02-22 15:28:12 +01:00
defaultcontextstore_test.go cli/command: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:42:14 +01:00
events_utils.go updated vendoring 2017-09-01 19:41:06 -04:00
registry.go registry: don't call "/info" API endpoint to get default registry 2022-03-15 16:30:42 +01:00
registry_test.go registry: don't call "/info" API endpoint to get default registry 2022-03-15 16:30:42 +01:00
streams.go Extract streams helpers from command package to their own package to remove a cyclic dependency from command to internal/containerizedengine 2019-01-28 14:36:00 +01:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go cli/command: fix documentation of CopyToFile mentioning ioutil 2022-04-08 14:56:48 +02:00
utils_test.go cli/command: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:42:14 +01:00