WithAPIClient configures the cli to use the given API client.
(c client.APIClient)
| 86 | |
| 87 | // WithAPIClient configures the cli to use the given API client. |
| 88 | func WithAPIClient(c client.APIClient) CLIOption { |
| 89 | return func(cli *DockerCli) error { |
| 90 | cli.client = c |
| 91 | return nil |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | // WithInitializeClient is passed to [DockerCli.Initialize] to initialize |
| 96 | // an API Client for use by the CLI. |
no outgoing calls
searching dependent graphs…